[3072] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH 9/9] Rename owl_log_msg to owl_log_entry and owl_log_write_msg to owl_log_write_entry; bits are cheap.

daemon@ATHENA.MIT.EDU (Adam Glasgall)
Wed May 25 18:15:22 2011

From: Adam Glasgall <glasgall@MIT.EDU>
To: barnowl-dev@mit.edu
Cc: Adam Glasgall <glasgall@mit.edu>
Date: Wed, 25 May 2011 18:14:55 -0400
In-Reply-To: <1306361695-13747-1-git-send-email-glasgall@mit.edu>

---
 logging.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/logging.c b/logging.c
index c61dda9..4ca1258 100644
--- a/logging.c
+++ b/logging.c
@@ -4,10 +4,10 @@
 #include <ctype.h>
 #include <sys/param.h>
 
-typedef struct _owl_log_msg { /* noproto */
+typedef struct _owl_log_entry { /* noproto */
   char *filename;
   char *message;
-} owl_log_msg;
+} owl_log_entry;
 
 
 static GMainContext *log_context;
@@ -155,7 +155,7 @@ static void owl_log_error(char *message)
   owl_select_post_task(owl_log_error_idle_func,message,NULL,NULL);
 }
 
-static gboolean owl_log_write_msg(owl_log_msg *msg)
+static gboolean owl_log_write_entry(owl_log_entry *msg)
 {
   FILE *file = NULL;
   file=fopen(msg->filename, "a");
@@ -168,7 +168,7 @@ static gboolean owl_log_write_msg(owl_log_msg *msg)
   return FALSE;
 }
 
-static void owl_log_free_message(owl_log_msg *msg)
+static void owl_log_free_message(owl_log_entry *msg)
 {
   if(msg) {
     if(msg->message) {
@@ -183,11 +183,11 @@ static void owl_log_free_message(owl_log_msg *msg)
 
 void owl_log_enqueue_message(char *buffer, const char *filename)
 {
-  owl_log_msg *log_msg = NULL; 
-  log_msg = g_new(owl_log_msg,1);
+  owl_log_entry *log_msg = NULL; 
+  log_msg = g_new(owl_log_entry,1);
   log_msg->message = buffer;
   log_msg->filename = g_strdup(filename);
-  owl_select_post_task(owl_log_write_msg,
+  owl_select_post_task(owl_log_write_entry,
                        log_msg,owl_log_free_message,log_context);
 }
 
-- 
1.7.2.3


home help back first fref pref prev next nref lref last post