account.h

00001 /*
00002  * account.h
00003  */
00004 
00005 #ifndef __LIBNFSNAPI_ACCOUNT_H__
00006 #define __LIBNFSNAPI_ACCOUNT_H__
00007 
00014 #include "mgr.h"
00015 
00017 typedef struct {
00018 #ifdef LIBNFSNAPI_BUILDING_LIB
00019         /* Opaque! Don't touch anything here! */
00020         libnfsnapi_mgr_t *mgr;
00021 
00022         char *account_id;
00023 #endif
00024 } libnfsnapi_account_t;
00025 
00027 typedef enum {
00028         LIBNFSNAPI_BALANCE_ALL = 0,
00029         LIBNFSNAPI_BALANCE_CASH = 1,
00030         LIBNFSNAPI_BALANCE_CREDIT = 2,
00031         LIBNFSNAPI_BALANCE_HIGH = 3
00032 } libnfsnapi_account_balance_t;
00033 
00042 libnfsnapi_account_t *libnfsnapi_account_create(libnfsnapi_mgr_t *mgr,
00043                                                 const char *account_id);
00048 void libnfsnapi_account_destroy(libnfsnapi_account_t *account);
00061 int libnfsnapi_account_balance(libnfsnapi_account_t *account,
00062                                 libnfsnapi_account_balance_t type);
00069 char *libnfsnapi_account_friendlyName(libnfsnapi_account_t *account);
00070 
00073 #endif /* __LIBNFSNAPI_ACCOUNT_H__ */

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