Site


Data Structures

struct  libnfsnapi_site_t

Functions

libnfsnapi_site_tlibnfsnapi_site_create (libnfsnapi_mgr_t *mgr, const char *short_name)
void libnfsnapi_site_destroy (libnfsnapi_site_t *site)
int libnfsnapi_site_addAlias (libnfsnapi_site_t *site, const char *alias)
int libnfsnapi_site_removeAlias (libnfsnapi_site_t *site, const char *alias)

Function Documentation

libnfsnapi_site_t* libnfsnapi_site_create libnfsnapi_mgr_t mgr,
const char *  short_name
 

Create a Site object.

Parameters:
mgr A Manager object, created with libnfsnapi_mgr_create.
short_name The site's short name. For example, if the site can be accessed as example.nfshost.com, then the short name is example. It will be copied internally.
Returns:
A Site object, or NULL on failure.

Definition at line 15 of file site.c.

References LIBNFSNAPI_ERROR_MEMORY.

void libnfsnapi_site_destroy libnfsnapi_site_t site  ) 
 

Destroy a Site object, and free all memory associated with it. Do not use this pointer after calling this function.

Definition at line 38 of file site.c.

int libnfsnapi_site_addAlias libnfsnapi_site_t site,
const char *  alias
 

Add a new alias for the site.

Parameters:
site The Site object.
alias The new alias.
Returns:
Zero on success.
Todo:
Parse response to check for actual success/failure.

Definition at line 44 of file site.c.

int libnfsnapi_site_removeAlias libnfsnapi_site_t site,
const char *  alias
 

Remove an alias for the site.

Parameters:
site The Site object.
alias The alias to remove.
Returns:
Zero on success.
Todo:
Parse response to check for actual success/failure.

Definition at line 62 of file site.c.


Generated on Sat Jan 13 17:42:28 2007 for libNFSNapi by  doxygen 1.4.6