Data Structures | |
struct | libnfsnapi_mgr_t |
Functions | |
libnfsnapi_mgr_t * | libnfsnapi_mgr_create (const char *login, const char *api_key, int *error_out) |
void | libnfsnapi_mgr_destroy (libnfsnapi_mgr_t *mgr) |
int | libnfsnapi_mgr_error (libnfsnapi_mgr_t *mgr) |
const char * | libnfsnapi_mgr_strerror (libnfsnapi_mgr_t *mgr) |
void | libnfsnapi_mgr_set_timenudge (libnfsnapi_mgr_t *mgr, int nudge) |
libnfsnapi_mgr_t *mgr; ... mgr = libnfsnapi_mgr_create("testuser", "p3kxmRKf9dk3l6ls"); ... libnfsnapi_mgr_destroy(mgr);
|
Create a Manager object, used for accessing the NFSN API.
This should only ever fail on
Definition at line 24 of file mgr.c. References LIBNFSNAPI_ERROR_LIBCURL, LIBNFSNAPI_ERROR_MEMORY, and libnfsnapi_mgr_destroy(). Here is the call graph for this function: |
|
Destroy a Manager object, and free all memory associated with it. Do not use this pointer after calling this function. Definition at line 112 of file mgr.c. Referenced by libnfsnapi_mgr_create(). |
|
Return the error code for the last failure associated with this Manager object. This will only be a sensible value if a libNFSNapi call actually indicated failure to its caller somehow.
|
|
Convenience function. Equivalent to Definition at line 134 of file mgr.c. References libnfsnapi_strerror(). Here is the call graph for this function: |
|
Set the time nudge for this Manager object. Interfacing with the NFSN API requires a timestamp to be used, and it must be accurate to within 5 seconds. Ideally, the client of this library would be running on a machine with an NTP-synchronised clock. However, if that is not possible or desired, the time nudge setting can be used to artificially alter the generated timestamp.
|