diff --git a/src/rm_nameserver.c b/src/rm_nameserver.c
index 2129944614bc027d0e1ed4f1f732c7c4ab1d72b6..e6e765e0a9a0b9d847d009f2bcd5a660092f4552 100644 (file)
--- a/src/rm_nameserver.c
+++ b/src/rm_nameserver.c
******************* Internal NameServer APIs *************************
**********************************************************************/
+/* FUNCTION PURPOSE: Adds an object to the NameServer
+ ***********************************************************************
+ * DESCRIPTION: Adds an object mapping a name to a resource to
+ * the NameServer tree.
+ */
int32_t rmNameServerAddObject(Rm_NameServerObjCfg *objCfg)
{
Rm_NameServerNode *newNode = NULL;
return(retVal);
}
+/* FUNCTION PURPOSE: Finds a NameServer object based on the name
+ ***********************************************************************
+ * DESCRIPTION: Finds the NameServer node with the name specified
+ * in the objCfg structure and returns the resource
+ * values mapped to the name via the objCfg structure
+ */
int32_t rmNameServerFindObject(Rm_NameServerObjCfg *objCfg)
{
Rm_NameServerNode findNode;
return(retVal);
}
+/* FUNCTION PURPOSE: Deletes an object from the NameServer
+ ***********************************************************************
+ * DESCRIPTION: Deletes the object with the name defined in the
+ * objCfg structure from the NameServer tree. Frees the
+ * memory associated with the NameServer node
+ */
int32_t rmNameServerDeleteObject(Rm_NameServerObjCfg *objCfg)
{
Rm_NameServerNode findNode;
return(retVal);
}
+/* FUNCTION PURPOSE: Prints the NameServer objects
+ ***********************************************************************
+ * DESCRIPTION: Prints the names and the resources they're mapped
+ * to for all objects stored in the NameServer tree.
+ */
void rmNameServerPrintObjects(Rm_NameServerTree *nameServerTree)
{
Rm_NameServerNode *node;
}
}
+/* FUNCTION PURPOSE: Initializes the NameServer tree
+ ***********************************************************************
+ * DESCRIPTION: Creates and initializes the NameServer tree
+ * root entry.
+ */
Rm_NameServerTree *rmNameServerInit(void)
{
Rm_NameServerTree *rootEntry = NULL;