[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas/src/datamonitor datamonitor.c datamon...
From: |
Reinhard Mueller |
Subject: |
gnue/geas/src/datamonitor datamonitor.c datamon... |
Date: |
Tue, 29 May 2001 11:41:58 -0700 |
CVSROOT: /cvs
Module name: gnue
Changes by: Reinhard Mueller <address@hidden> 01/05/29 11:41:57
Modified files:
geas/src/datamonitor: datamonitor.c datamonitor.h
Log message:
cosmetic changes
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/datamonitor/datamonitor.c.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/datamonitor/datamonitor.h.diff?cvsroot=OldCVS&tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gnue/geas/src/datamonitor/datamonitor.c
diff -u gnue/geas/src/datamonitor/datamonitor.c:1.8
gnue/geas/src/datamonitor/datamonitor.c:1.9
--- gnue/geas/src/datamonitor/datamonitor.c:1.8 Mon May 28 15:51:22 2001
+++ gnue/geas/src/datamonitor/datamonitor.c Tue May 29 11:41:57 2001
@@ -19,7 +19,7 @@
along with GEAS; if not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- $Id: datamonitor.c,v 1.8 2001/05/28 22:51:22 reinhard Exp $
+ $Id: datamonitor.c,v 1.9 2001/05/29 18:41:57 reinhard Exp $
*/
#include "config.h"
@@ -50,8 +50,8 @@
* Global variables
\* ========================================================================= */
-static gboolean datamonitor_open = FALSE;
-static GList *datamonitor_logfiles = NULL;
+static gboolean _dm_open = FALSE;
+static GList *_dm_logfiles = NULL;
/* ========================================================================= *\
* Private functions
@@ -91,7 +91,7 @@
\* ------------------------------------------------------------------------- */
static void
_dm_write_logline_start (FILE * fp, const gchar *username,
- const gchar *transactionid, guint32 event)
+ const gchar *transactionid, guint32 event)
{
/* 'theclock' was going to be a microsecond accurate timer, but that */
/* didn't work well. instead, it is incremented each time this function */
@@ -155,8 +155,8 @@
void
init_datamonitor ()
{
- datamonitor_logfiles = NULL;
- datamonitor_open = TRUE;
+ _dm_logfiles = NULL;
+ _dm_open = TRUE;
}
/* ------------------------------------------------------------------------- *\
@@ -167,11 +167,11 @@
{
GList *l;
- datamonitor_open = FALSE;
+ _dm_open = FALSE;
- if (datamonitor_logfiles)
+ if (_dm_logfiles)
{
- l = datamonitor_logfiles;
+ l = _dm_logfiles;
while (l)
{
if (l->data)
@@ -181,8 +181,8 @@
}
l = g_list_next (l);
}
- g_list_free (datamonitor_logfiles);
- datamonitor_logfiles = NULL;
+ g_list_free (_dm_logfiles);
+ _dm_logfiles = NULL;
}
}
@@ -190,19 +190,19 @@
* Add a file to the list of active logfiles
\* ------------------------------------------------------------------------- */
void
-add_datamonitor_logfile (const gchar *logfile, guint32 events, guint32 flags)
+add_datamonitor_logfile (const gchar *filename, guint32 events, guint32 flags)
{
- dm_logfile *l;
+ dm_logfile *logfile;
- g_return_if_fail (logfile);
+ g_return_if_fail (filename);
- l = g_new0 (dm_logfile, 1);
+ logfile = g_new0 (dm_logfile, 1);
- l->name = g_strdup (logfile);
- l->events = events;
- l->flags = flags;
+ logfile->name = g_strdup (filename);
+ logfile->events = events;
+ logfile->flags = flags;
- datamonitor_logfiles = g_list_append (datamonitor_logfiles, l);
+ _dm_logfiles = g_list_append (_dm_logfiles, logfile);
}
/* ------------------------------------------------------------------------- *\
@@ -212,7 +212,7 @@
dm_event (const gchar *username, const gchar *transactionid, guint32 event,
...)
{
- GList *l = datamonitor_logfiles;
+ GList *l = _dm_logfiles;
gboolean write;
dm_logfile *lf;
@@ -312,7 +312,7 @@
/* handle an event */
/* abort data monitor if not initialised */
- if (!datamonitor_open)
+ if (!_dm_open)
return;
/* code here should be able to track data requests, and optimise */
@@ -325,7 +325,7 @@
void
dm_logentry (guint32 type, const gchar *username, const gchar *fmt, ...)
{
- GList *l = datamonitor_logfiles;
+ GList *l = _dm_logfiles;
gboolean write;
dm_logfile *lf;
@@ -380,7 +380,7 @@
void
dm_vlogentry (guint32 type, const gchar *username, const gchar *fmt, va_list a)
{
- GList *l = datamonitor_logfiles;
+ GList *l = _dm_logfiles;
gboolean write;
dm_logfile *lf;
Index: gnue/geas/src/datamonitor/datamonitor.h
diff -u gnue/geas/src/datamonitor/datamonitor.h:1.6
gnue/geas/src/datamonitor/datamonitor.h:1.7
--- gnue/geas/src/datamonitor/datamonitor.h:1.6 Mon May 28 15:51:22 2001
+++ gnue/geas/src/datamonitor/datamonitor.h Tue May 29 11:41:57 2001
@@ -19,7 +19,7 @@
along with GEAS; if not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- $Id: datamonitor.h,v 1.6 2001/05/28 22:51:22 reinhard Exp $
+ $Id: datamonitor.h,v 1.7 2001/05/29 18:41:57 reinhard Exp $
*/
#include <glib.h>
@@ -73,7 +73,7 @@
void init_datamonitor ();
void close_datamonitor ();
-void add_datamonitor_logfile (const gchar *logfile, guint32 events,
+void add_datamonitor_logfile (const gchar *filename, guint32 events,
guint32 flags);
/* data access events */