-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlensfun_dbupdate.h
24 lines (18 loc) · 1.27 KB
/
lensfun_dbupdate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef LENSFUN_DBUPDATE_H
#define LENSFUN_DBUPDATE_H
#include <string>
enum lf_db_return {
LENSFUN_DBUPDATE_OK, //database file retrieve and install was successful
LENSFUN_DBUPDATE_NOVERSION, //version requested is not available
LENSFUN_DBUPDATE_NODATABASE, //no database installed locally at the path
LENSFUN_DBUPDATE_OLDVERSION, //database installed locally at the path is not the latest
LENSFUN_DBUPDATE_CURRENTVERSION,//database installed locally at the path is already the latest version
LENSFUN_DBUPDATE_RETRIEVFAIL //database file retrieve from server failed
};
//checks available database version, state of installed version:
lf_db_return lensfun_dbcheck(int version, std::string dbpath=std::string(), std::string dburl="https://lensfun.sourceforge.net/db/");
//does the full data base availbility and version checks, retrieves and installs new database:
lf_db_return lensfun_dbupdate(int version, std::string dbpath=std::string(), std::string dburl="https://lensfun.sourceforge.net/db/");
//does the full data base availbility and version checks, retrieves and installs new database, directly in the dbpath (no version_x dir):
lf_db_return lensfun_dbupdate_inplace(int version, std::string dbpath=std::string(), std::string dburl="https://lensfun.sourceforge.net/db/");
#endif