Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

rmClient.h

Go to the documentation of this file.
00001 #ifndef __rmClient_
00002 #define __rmClient_
00003 
00004 #include <ResourceMonitor/ResourceMonitorTypes.h>
00005 #include "rmClientTypes.h"
00006 
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 
00013 /* external functions */
00014 
00015 
00017 extern int initRMClient();
00018 
00019 extern void shutdownRMClient();
00020 
00022 extern int getRMVersion();
00023 
00024 
00025 /******************************************
00026  *
00027  * The Subagent Client Interface
00028  *
00029  ******************************************/
00030 
00032 extern int getInteger32(RMEntity aEntity, RMAttribute aName, 
00033                                unsigned long aID, long * aValue);
00034 
00036 extern int setInteger32(RMEntity aEntity, RMAttribute aName,
00037                                unsigned long aID, long aValue);
00038 
00040 extern int getUnsigned(RMEntity aEntity, RMAttribute aName, 
00041                               unsigned long aID, unsigned long * aValue);
00042 
00044 extern int setUnsigned(RMEntity aEntity, RMAttribute aName, 
00045                               unsigned long aID, unsigned long aValue);
00046 
00048 extern int getUnsigned64(RMEntity aEntity, RMAttribute aName, 
00049                                 unsigned long aID, u_int64_t * aValue);
00050 
00052 extern int setUnsigned64(RMEntity aEntity, RMAttribute aName, 
00053                                 unsigned long aID, u_int64_t aValue);
00054 
00056 extern int getUUIDString(RMEntity aEntity, RMAttribute aName,
00057                                 unsigned long aID, char * aBuf);
00058 
00060 extern int getUUID(RMEntity aEntity, RMAttribute aName, 
00061                           unsigned long aID, uuid_t aUUID);
00062 
00064 extern int setUUIDString(RMEntity aEntity, RMAttribute aName, 
00065                           unsigned long aID, char * aUUID);
00066 
00068 extern int getString(RMEntity aEntity, RMAttribute aName, unsigned long aID, char * * aBuf);
00069 
00071 extern int setString(RMEntity aEntity, RMAttribute aName, unsigned long aID, char * aBuf);
00072 
00074 extern int newEntry(RMEntity aEntity, unsigned long aID);
00075 
00077 extern int deleteEntry(RMEntity aEntity, unsigned long aID);
00078 
00080 extern unsigned long getNewId(RMEntity aEntity);
00081 
00083 extern unsigned long getMaxId(RMEntity aEntity);
00084 
00086 extern int findId(RMEntity aEntity, unsigned long aID);
00087 
00089 extern int getNextId(RMEntity aEntity, unsigned long aID, unsigned long * aNextID);
00090 
00092 extern size_t getCount(RMEntity aEntity);
00093 
00095 extern int getBinary(RMEntity aEntity, RMAttribute aName, unsigned long aID, char * * aBuf, unsigned long * aLength);
00096 
00097 
00098 /***********************************************************************
00099  * Functions for events.
00100  *
00101  */
00102 
00104 void addEvent(posix_log_recid_t aRecid, unsigned long aId);
00105 
00107 void processEvents();
00108 
00109 #ifdef __cplusplus
00110 }
00111 #endif
00112 
00113 #endif /* __rmClient_ */

Generated on Tue Sep 10 16:46:32 2002 for ResourceMonitorSNMPSubagent by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002