Revision: 69043
          http://sourceforge.net/p/brlcad/code/69043
Author:   brlcad
Date:     2016-10-13 12:41:08 +0000 (Thu, 13 Oct 2016)
Log Message:
-----------
example snippet belongs and is still in log.h so remove from here.

Modified Paths:
--------------
    brlcad/trunk/include/bu/hook.h

Modified: brlcad/trunk/include/bu/hook.h
===================================================================
--- brlcad/trunk/include/bu/hook.h      2016-10-13 12:36:54 UTC (rev 69042)
+++ brlcad/trunk/include/bu/hook.h      2016-10-13 12:41:08 UTC (rev 69043)
@@ -31,41 +31,8 @@
 
 /** @addtogroup bu_log
  *
- * @brief
- * BRL-CAD support library, error logging routines.
+ * These are hook routines for keeping track of callback functions.
  *
- * Note that the user may provide his own logging routine, by replacing these
- * functions.  That is why this is in file of its own.  For example, LGT and
- * RTSRV take advantage of this.
- *
- * Here is an example of how to set up a custom logging callback.  While bu_log
- * presently writes to STDERR by default, this behavior should not be relied
- * upon and may be changed to STDOUT in the future without notice.
- *
- @code
- --- BEGIN EXAMPLE ---
-
- int log_output_to_file(void *data, void *str)
- {
-   FILE *fp = (FILE *)data;
-   fprintf(fp, "LOG: %s", str);
-   return 0;
- }
-
- int main(int ac, char *av[])
- {
-   FILE *fp = fopen("whatever.log", "w+");
-   bu_log_add_hook(log_output_to_file, (void *)fp);
-   bu_log("Logging to file.\n");
-   bu_log_delete_hook(log_output_to_file, (void *)fp);
-   bu_log("Logging to stderr.\n");
-   fclose(fp);
-   return 0;
- }
-
- --- END EXAMPLE ---
- @endcode
- *
  */
 /** @{ */
 /** @file bu/log.h */
@@ -129,7 +96,7 @@
 
 __END_DECLS
 
-#endif  /* BU_LOG_H */
+#endif  /* BU_HOOK_H */
 
 /*
  * Local Variables:

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to