Functions | |
CST * | CST_open (const int readonly, unsigned char *password) |
Open default storage. | |
CST * | CST_open_file (const char *filename, const int readonly, unsigned char *password) |
Open local storage from file 'filename'. If file not exist then created. | |
int | CST_create_file (const char *filename, unsigned char *password) |
Create empty local storage in file 'filename'. | |
int | CST_save (CST *st) |
void | CST_free (CST *st) |
int | CST_last_error () |
int | CST_backup (CST *st, const char *filename, unsigned char *password) |
int CST_backup | ( | CST * | st, | |
const char * | filename, | |||
unsigned char * | password | |||
) |
Backup local (file) storage.
st | Pointer to storage structure | |
filename | Filename for backup | |
password | Password (NOT USED) |
int CST_create_file | ( | const char * | filename, | |
unsigned char * | password | |||
) |
Create empty local storage in file 'filename'.
Only create file, not open it.
filename | Filename of local storage | |
password | Password for storage or NULL if password is empty (NOT USED) |
void CST_free | ( | CST * | st | ) |
Free resources used by storage.
st | Pointer to storage structure |
int CST_last_error | ( | ) |
Last error code. If error then return last error code.
CST* CST_open | ( | const int | readonly, | |
unsigned char * | password | |||
) |
Open default storage.
If find gconf key "/apps/osso/certman/filename" then open file use this value. Else open file "storage.cst". If file not exist then created.
Libcst assumes that libglib2 has already been initialized. It is true for any Hildon or GTK+ applications, but you should call g_type_init() explicitly before any calls to CST_open() if you use minimalistic environment.
include <glib-object.h> ... g_type_init(); CST * storage = CST_open(...); ...
readonly | If storage will be readonly (NOT USED) | |
password | Password for storage or NULL if password is empty (NOT USED) |
CST* CST_open_file | ( | const char * | filename, | |
const int | readonly, | |||
unsigned char * | password | |||
) |
Open local storage from file 'filename'. If file not exist then created.
filename | Filename of local storage | |
readonly | If storage will be readonly (NOT USED) | |
password | Password for storage or NULL if password is empty (NOT USED) |
int CST_save | ( | CST * | st | ) |
Save storage.
st | Pointer to storage structure |