libnetconf
0.10.0-146_trunk
NETCONF Library
|
Specific functions for NCDS_FILE_DS type of datastore implementation. More...
Functions | |
int | ncds_file_set_path (struct ncds_ds *datastore, const char *path) |
Assign the path of the datastore file into the datastore structure. More... | |
Specific functions for NCDS_FILE_DS type of datastore implementation.
int ncds_file_set_path | ( | struct ncds_ds * | datastore, |
const char * | path | ||
) |
Assign the path of the datastore file into the datastore structure.
Checks if the file exist and is accessible for reading and writing. If the file does not exist, it is created. The file is opened and the file descriptor is stored in the structure.
[in] | datastore | Datastore structure to be configured. |
[in] | path | File path to the file storing configuration datastores. |