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

RMWatermarkConfig.c File Reference

#include <netinet/in.h>
#include <ucd-snmp/ucd-snmp-config.h>
#include <ucd-snmp/ucd-snmp-includes.h>
#include <ucd-snmp/ucd-snmp-agent-includes.h>
#include "RMWatermarkConfig.h"
#include "rmClient.h"
#include "utility.h"
#include <stdlib.h>
#include <string.h>
#include <ucd-snmp/util_funcs.h>

Go to the source code of this file.

Defines

#define WATERMARKCONFIGNEXTINDEX   1
#define WATERMARKTYPE   5
#define WATERMARKCONFIGREFCOUNT   7
#define WATERMARKCONFIGSTATUS   8

Functions

void init_RMWatermarkConfig (void)
unsigned char * var_RMWatermarkConfig (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
unsigned char * var_WatermarkConfigTable (struct variable *vp, oid *name, size_t *length, int exact, size_t *var_len, WriteMethod **write_method)
int write_watermarkType (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)
int write_watermarkConfigStatus (int action, u_char *var_val, u_char var_val_type, size_t var_val_len, u_char *statP, oid *name, size_t name_len)

Variables

oid RMWatermarkConfig_variables_oid [] = { 1,3,6,1,4,1,343,2,15,1,2,2,3 }
variable4 RMWatermarkConfig_variables []


Define Documentation

#define WATERMARKCONFIGNEXTINDEX   1
 

#define WATERMARKCONFIGREFCOUNT   7
 

#define WATERMARKCONFIGSTATUS   8
 

#define WATERMARKTYPE   5
 


Function Documentation

void init_RMWatermarkConfig void   
 

Definition at line 78 of file RMWatermarkConfig.c.

References RMWatermarkConfig_variables, and RMWatermarkConfig_variables_oid.

Referenced by main.

unsigned char* var_RMWatermarkConfig struct variable *    vp,
oid *    name,
size_t *    length,
int    exact,
size_t *    var_len,
WriteMethod **    write_method
 

Definition at line 103 of file RMWatermarkConfig.c.

References getNewId, and WATERMARKCONFIG.

unsigned char* var_WatermarkConfigTable struct variable *    vp,
oid *    name,
size_t *    length,
int    exact,
size_t *    var_len,
WriteMethod **    write_method
 

Definition at line 145 of file RMWatermarkConfig.c.

References getInteger32, header_MyGeneric, WATERMARKCONFIG, WATERMARKCONFIG_REFCOUNT, WATERMARKCONFIG_STATUS, WATERMARKCONFIG_TYPE, write_watermarkConfigStatus, and write_watermarkType.

int write_watermarkConfigStatus int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 302 of file RMWatermarkConfig.c.

References ACTIVE, CREATEANDGO, CREATEANDWAIT, deleteEntry, DESTROY, getInteger32, header_writeGeneric, newEntry, NOTINSERVICE, NOTREADY, RMWatermarkConfig_variables_oid, setInteger32, WATERMARKCONFIG, and WATERMARKCONFIG_STATUS.

Referenced by var_WatermarkConfigTable.

int write_watermarkType int    action,
u_char *    var_val,
u_char    var_val_type,
size_t    var_val_len,
u_char *    statP,
oid *    name,
size_t    name_len
 

Definition at line 217 of file RMWatermarkConfig.c.

References getInteger32, header_writeGeneric, RMWatermarkConfig_variables_oid, setInteger32, WATERMARKCONFIG, and WATERMARKCONFIG_TYPE.

Referenced by var_WatermarkConfigTable.


Variable Documentation

struct variable4 RMWatermarkConfig_variables[]
 

Initial value:

 {

#define WATERMARKCONFIGNEXTINDEX
  { WATERMARKCONFIGNEXTINDEX, ASN_UNSIGNED  , RONLY , var_RMWatermarkConfig, 1, { 1 } },
#define WATERMARKTYPE
  { WATERMARKTYPE       , ASN_INTEGER   , RWRITE, var_WatermarkConfigTable, 3, { 2,1,2 } },
#define WATERMARKCONFIGREFCOUNT
  { WATERMARKCONFIGREFCOUNT, ASN_INTEGER   , RONLY , var_WatermarkConfigTable, 3, { 2,1,3 } },
#define WATERMARKCONFIGSTATUS
  { WATERMARKCONFIGSTATUS, ASN_INTEGER   , RWRITE, var_WatermarkConfigTable, 3, { 2,1,4 } },

}

Definition at line 58 of file RMWatermarkConfig.c.

Referenced by init_RMWatermarkConfig.

oid RMWatermarkConfig_variables_oid[] = { 1,3,6,1,4,1,343,2,15,1,2,2,3 }
 

Definition at line 48 of file RMWatermarkConfig.c.

Referenced by init_RMWatermarkConfig, write_watermarkConfigStatus, and write_watermarkType.


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