OverView Index Help                                                                WebNMS Agent Toolkit C Edition 6 

fileoprifc.c.
This file contains the wrapper functions for the file operations. The user has to change this file if he is not going for file strorage for shtml files.
Return Type Method Summary
void CloseResource(void *resourcePtr)
             This function closes the Resource pointed by the Resource pointer.
INT32 GetResourceLength(CHAR *resourceName)
             It will calculate the length of the Resource which is coming as argument and returns it .
CHAR IsEndOfResource(void *resourcePtr)
             This function finds out whether the Resource pointer has come to the end or not.
void* OpenResource(CHAR *resourceName, CHAR *mode)
             This function opens the Resource specified in the argument in the specified mode.
CHAR ReadALineFromResource(void *resourcePtr, StringBuffer *strBuf)
             This function reads a line from the Resource and stores it in the Stringbuffer.
CHAR* ReadResourceContents(CHAR *resourceName, INT32 *bufLen)
             It will return the contents of the Resource coming as the argument and returns NULL if it is not available.
   
Method Details

CloseResource()

void CloseResource(void *resourcePtr)

This function closes the Resource pointed by the Resource pointer.

Arguments:
1. Resource Pointer (IN).
Return type:
Nothing.
Bugs:
null

GetResourceLength()

INT32 GetResourceLength(CHAR *resourceName)

It will calculate the length of the Resource which is coming as argument and returns it .

Arguments:
1. Resource Name (IN).
Return type:
Returns the length of the Resource.
Bugs:
null

IsEndOfResource()

CHAR IsEndOfResource(void *resourcePtr)

This function finds out whether the Resource pointer has come to the end or not.

Arguments:
1. Resource Pointer (IN).
Return type:
TRUE / FALSE.
Bugs:
null

OpenResource()

void* OpenResource(CHAR *resourceName, CHAR *mode)

This function opens the Resource specified in the argument in the specified mode.

Arguments:
1. Resource Name (IN).
Return type:
Resource Pointer.
Bugs:
null

ReadALineFromResource()

CHAR ReadALineFromResource(void *resourcePtr, StringBuffer *strBuf)

This function reads a line from the Resource and stores it in the Stringbuffer.

Arguments:
1. Resource Pointer (IN).
2. StringBuffer (OUT).
Return type:
Exit Status.
Bugs:
null

ReadResourceContents()

CHAR* ReadResourceContents(CHAR *resourceName, INT32 *bufLen)

It will return the contents of the Resource coming as the argument and returns NULL if it is not available.

Arguments:
1. Resource Name (IN).
2. Resource contents length (OIT).
Return type:
Resource Contents.
Bugs:
null


OverView Index Help                                                                WebNMS Agent Toolkit C Edition 6 

Copyright (c) 2009 ZOHO Corp. All Rights Reserved.