OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_lab.c versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_lab.c 1.3 -> 1.4

--- rc_lab.c     2003/06/03 15:26:52     1.3
+++ rc_lab.c     2003/06/11 16:18:48     1.4
@@ -95,6 +95,35 @@
 }
 
 /************************************************
+* labelGetXXX(rc_label_t *)                     *
+* Accessor methods                              *
+************************************************/
+const char *labelGetname(rc_label_t *pLab)
+{ /* Name of label, used for display during verbose */
+    if (pLab)
+        return(pLab->m_szName);
+    else
+        RC_THROW(RC_ERR_USE);
+
+    return(0); /* Not reached */
+}
+
+/************************************************
+* labelSetXXX(rc_label_t *, const ... *)        *
+* Accessor methods                              *
+************************************************/
+rc_return_t labelSetname(rc_label_t *pLab, const char *szName)
+{ /* Name of label, used for display during verbose */
+    if (pLab) {
+        pLab->m_szName = malloc((strlen(szName) + 1) * sizeof (char));
+        strcpy(pLab->m_szName, szName);
+        return(RC_THROW(RC_OK));
+    }
+
+    return(RC_THROW(RC_ERR_USE));
+}
+
+/************************************************
 * labelDelete(rc_label_t *)                     *
 * Destruct a label                              *
 ************************************************/

CVSTrac 2.0.1