]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
new functions isc_task_getname() and isc_task_gettag(),
authorAndreas Gustafsson <source@isc.org>
Wed, 26 Jul 2000 17:11:14 +0000 (17:11 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 26 Jul 2000 17:11:14 +0000 (17:11 +0000)
to be used for debugging

lib/isc/include/isc/task.h
lib/isc/task.c

index 983bf0615ca0aebf0dd886d7baeee5fda6311eed..45b4dcc8a171ef039473d98822ed935205573f4d 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: task.h,v 1.44 2000/06/22 21:58:08 tale Exp $ */
+/* $Id: task.h,v 1.45 2000/07/26 17:11:14 gson Exp $ */
 
 #ifndef ISC_TASK_H
 #define ISC_TASK_H 1
@@ -457,6 +457,36 @@ isc_task_setname(isc_task_t *task, const char *name, void *tag);
  *     'task' is a valid task.
  */
 
+const char *
+isc_task_getname(isc_task_t *task);
+/*
+ * Get the name of 'task', as previously set using isc_task_setname().
+ *
+ * Notes:
+ *     This function is for debugging purposes only.
+ *
+ * Requires:
+ *     'task' is a valid task.
+ *
+ * Returns:
+ *     A non-NULL pointer to a null-terminated string.
+ *     If the task has not been named, the string is
+ *     empty.
+ *
+ */
+
+void *
+isc_task_gettag(isc_task_t *task);
+/*
+ * Get the tag value for  'task', as previously set using isc_task_settag().
+ *
+ * Notes:
+ *     This function is for debugging purposes only.
+ *
+ * Requires:
+ *     'task' is a valid task.
+ */
+
 /*****
  ***** Task Manager.
  *****/
index 60834b5ce72cdfd83f8d4af7a5007ec6f11cae54..baa83171da179a6b0207b3d87405bf38f8e1534f 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: task.c,v 1.65 2000/06/22 21:57:16 tale Exp $ */
+/* $Id: task.c,v 1.66 2000/07/26 17:11:13 gson Exp $ */
 
 /*
  * Principal Author: Bob Halley
@@ -681,6 +681,17 @@ isc_task_setname(isc_task_t *task, const char *name, void *tag) {
 
 }
 
+const char *
+isc_task_getname(isc_task_t *task) {
+       return (task->name);
+}
+
+void *
+isc_task_gettag(isc_task_t *task) {
+       return (task->tag);
+}
+
+
 /***
  *** Task Manager.
  ***/