DNS


Data Structures

struct  libnfsnapi_dns_t

Functions

libnfsnapi_dns_tlibnfsnapi_dns_create (libnfsnapi_mgr_t *mgr, const char *domain)
void libnfsnapi_dns_destroy (libnfsnapi_dns_t *dns)
int libnfsnapi_dns_minTTL (libnfsnapi_dns_t *dns)

Function Documentation

libnfsnapi_dns_t* libnfsnapi_dns_create libnfsnapi_mgr_t mgr,
const char *  domain
 

Create a DNS object.

Parameters:
mgr A Manager object, created with libnfsnapi_mgr_create.
domain The domain name. It will be copied internally.
Returns:
A DNS object, or NULL on failure.

Definition at line 15 of file dns.c.

References LIBNFSNAPI_ERROR_MEMORY.

void libnfsnapi_dns_destroy libnfsnapi_dns_t dns  ) 
 

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

Definition at line 38 of file dns.c.

int libnfsnapi_dns_minTTL libnfsnapi_dns_t dns  ) 
 

Retrieve the domain's minimum Time-To-Live (TTL).

Parameters:
dns A DNS object.
Returns:
Domain's minTTL, or a negative number on error. Use libnfsnapi_mgr_error to find out the error code.


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