dlite-python-storage#
Python storages.
Functions
-
const char **dlite_python_storage_failed_paths()#
Returns a static pointer to a NULL-terminated list of pointers to storages that failed to load.
-
FUPaths *dlite_python_storage_paths(void)#
Returns a pointer to internal Python storage search paths.
-
void dlite_python_storage_paths_clear(void)#
Clears Python storage search path.
-
int dlite_python_storage_paths_insert(const char *path, int n)#
Inserts
path
into Python storage paths before positionn
. Ifn
is negative, it counts from the end (like Python).Returns the index of the newly inserted element or -1 on error.
-
int dlite_python_storage_paths_append(const char *path)#
Appends
path
to Python storage paths. Returns the index of the newly appended element or -1 on error.
-
int dlite_python_storage_paths_remove_index(int index)#
Removes path number
index
from Python storage paths. Returns non-zero on error.
-
const char **dlite_python_storage_paths_get(void)#
Returns a pointer to the current Python storage plugin search path or NULL on error.
-
void *dlite_python_storage_load(void)#
Loads all Python storages (if needed).
Returns a borrowed reference to a list of storage plugins (casted to void *) or NULL on error.
-
void dlite_python_storage_unload(void)#
Unloads all currently loaded storages.