Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

libmacs.h

Go to the documentation of this file.
00001 
00048 #define MACS_AUS 1
00049 
00050 #define MACS_UPS 2
00051 
00052 #define MACS_ATS 4
00053 
00054 #define MACS_ALL MACS_AUS | MACS_UPS | MACS_ATS
00055 
00074 void *macs_init(const char *cf, int connect);
00075 
00083 const char *macs_cf(void *ctxp);
00084 
00092 void macs_exit(void *ctxp);
00093 
00104 int macs_ping(const void *ctxp, const int servers);
00105 
00134 char *macs_get_config(const void *ctxp, const char *key, ...);
00135 
00163 char **macs_get_configs(const void *ctxp, int *nodes, const char *key, ...);
00164 
00174 char **macs_get_methods(const void *ctxp, int server);
00175 
00192 int macs_logout(const void *ctxp, const char *skey);    
00193 
00209 char *macs_login(const void *ctxp,
00210                  const char *method, const char *login, const char *pwd,
00211                  const char *ip, const char *port, int timeout);
00212 
00225 char *macs_auth_sess(const void *ctxp, const char *skey,
00226                      const char *ip, const char *port);
00227 
00240 typedef enum {
00242   MACS_TYPE_INT,
00244   MACS_TYPE_FLOAT,
00246   MACS_TYPE_CHAR,
00248   MACS_TYPE_BLOB,
00250   MACS_TYPE_LINK,
00252   MACS_TYPE_RES,
00254   MACS_TYPE_AUTO
00255 } macs_profile_type;
00256 
00268 char **macs_upc_list(const void *ctxp, const char *meth, const char *id,
00269                      macs_profile_type type);
00270 
00277 char *macs_upc_path2id(const void *ctxp, const char *meth, const char *path);
00278 
00285 char *macs_upc_id2path(const void *ctxp, const char *meth, const char *id);
00286 
00313 void *macs_upc_get(const void *ctxp, const char *meth, char *rid, char *nsid,
00314                    macs_profile_type *type, long int *siz);
00315 
00327 int macs_upc_set(const void *ctxp, const char *meth, char *rid, char *nsid,
00328                  macs_profile_type type, const void *val, long int siz);
00329 
00339 typedef enum {
00341   MACS_READ,
00343   MACS_WRITE,
00345   MACS_ADMIN,
00347   MACS_OWN
00348 } macs_action;
00349 
00361 int macs_authorize(const void *ctxp, const char *uid, macs_action act,
00362                    const char *rid);
00363 
00377 char **macs_ats_login(const void *ctxp, const char *uid);
00378 
00390 int macs_ats_logout(const void *ctxp, char *uid);
00391 

Generated on Tue Oct 8 22:15:52 2002 for MACS Client C API by doxygen1.2.16