2003-06-13 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Fri, 13 Jun 2003 16:08:46 +0000
changeset 7 d8eae83450ac
parent 6 78fdf5d9eb1b
child 8 33d64cf345be
2003-06-13 Mikael Hallendal <micke@imendio.com> * AUTHORS: updated contact information * README: updated contact information * loudmouth/*.[ch]: updated email address * loudmouth/lm-message-node.c: don't lower case the XML * loudmouth/lm-message.c: (message_type_from_string): use strcmp rather than strcasecmp * loudmouth/lm-parser.c: (parser_start_node_cb), (parser_end_node_cb), (lm_parser_new): use strcmp instead of strcasecmp
AUTHORS
ChangeLog
README
loudmouth/lm-connection.c
loudmouth/lm-connection.h
loudmouth/lm-debug.c
loudmouth/lm-debug.h
loudmouth/lm-error.c
loudmouth/lm-error.h
loudmouth/lm-internals.h
loudmouth/lm-message-handler.c
loudmouth/lm-message-handler.h
loudmouth/lm-message-node.c
loudmouth/lm-message-node.h
loudmouth/lm-message.c
loudmouth/lm-message.h
loudmouth/lm-parser.c
loudmouth/lm-parser.h
loudmouth/lm-sha.h
loudmouth/lm-utils.c
loudmouth/lm-utils.h
loudmouth/loudmouth.h
loudmouth/test-lm.c
--- a/AUTHORS	Wed Jun 11 16:44:10 2003 +0000
+++ b/AUTHORS	Fri Jun 13 16:08:46 2003 +0000
@@ -1,2 +1,2 @@
-Mikael Hallendal <micke@codefactory.se>
+Mikael Hallendal <micke@imendio.com>
 
--- a/ChangeLog	Wed Jun 11 16:44:10 2003 +0000
+++ b/ChangeLog	Fri Jun 13 16:08:46 2003 +0000
@@ -1,3 +1,16 @@
+2003-06-13  Mikael Hallendal  <micke@imendio.com>
+
+	* AUTHORS: updated contact information
+	* README: updated contact information
+	* loudmouth/*.[ch]: updated email address
+	* loudmouth/lm-message-node.c: don't lower case the XML
+	* loudmouth/lm-message.c:
+	(message_type_from_string): use strcmp rather than strcasecmp
+	* loudmouth/lm-parser.c: 
+	(parser_start_node_cb),
+	(parser_end_node_cb), 
+	(lm_parser_new): use strcmp instead of strcasecmp
+
 2003-06-11  Mikael Hallendal  <micke@codefactory.se>
 
 	* docs/reference/loudmouth-sections.txt: Added new functions
--- a/README	Wed Jun 11 16:44:10 2003 +0000
+++ b/README	Fri Jun 13 16:08:46 2003 +0000
@@ -52,5 +52,5 @@
 http://bugzilla.codefactory.se/enter_bug.cgi?product=loudmouth
 
 Questions and others can be sent to me at:
-email: micke@imendo.com
-jabber: micke@jabber.codefactory.se
+email: micke@imendio.com
+jabber: micke@imendio.com
--- a/loudmouth/lm-connection.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-connection.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-connection.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-connection.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-debug.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-debug.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-debug.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-debug.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-error.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-error.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-error.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-error.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-internals.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-internals.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-message-handler.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-message-handler.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-message-handler.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-message-handler.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-message-node.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-message-node.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
@@ -90,7 +90,7 @@
 
         node = g_new0 (LmMessageNode, 1);
         
-        node->name       = g_ascii_strdown (name, -1);
+        node->name       = g_strdup (name);
         node->value      = NULL;
 	node->raw_mode   = FALSE;
         node->attributes = NULL;
@@ -233,17 +233,13 @@
 {
 	gboolean  found = FALSE; 
 	GSList   *l;
-	gchar    *key;
-	
-	key = g_utf8_strdown (name, -1);
 
 	for (l = node->attributes; l; l = l->next) {
 		KeyValuePair *kvp = (KeyValuePair *) l->data;
                 
-		if (strcmp (kvp->key, key) == 0) {
+		if (strcmp (kvp->key, name) == 0) {
 			g_free (kvp->value);
 			kvp->value = g_strdup (value);
-			g_free (key);
 			found = TRUE;
 			break;
 		}
@@ -253,11 +249,10 @@
 		KeyValuePair *kvp;
 	
 		kvp = g_new0 (KeyValuePair, 1);                
-		kvp->key = key;
+		kvp->key = g_strdup (name);
 		kvp->value = g_strdup (value);
 		
-		node->attributes = g_slist_prepend (node->attributes,
-						    kvp);
+		node->attributes = g_slist_prepend (node->attributes, kvp);
 	}
 }
 
@@ -275,22 +270,17 @@
 {
         GSList      *l;
         const gchar *ret_val = NULL;
-        gchar       *key;
 
         g_return_val_if_fail (node != NULL, NULL);
 
-        key = g_utf8_strdown (name, -1);
-
         for (l = node->attributes; l; l = l->next) {
                 KeyValuePair *kvp = (KeyValuePair *) l->data;
                 
-                if (strcmp (kvp->key, key) == 0) {
+                if (strcmp (kvp->key, name) == 0) {
                         ret_val = kvp->value;
                 }
         }
         
-        g_free (key);
-        
         return ret_val;
 }
 
@@ -310,7 +300,7 @@
 	LmMessageNode *l;
 	
 	for (l = node->children; l; l = l->next) {
-		if (g_ascii_strcasecmp (l->name, child_name) == 0) {
+		if (strcmp (l->name, child_name) == 0) {
 			return l;
 		}
 	}
@@ -336,7 +326,7 @@
         LmMessageNode *ret_val = NULL;
 
         for (l = node->children; l; l = l->next) {
-                if (g_ascii_strcasecmp (l->name, child_name) == 0) {
+                if (strcmp (l->name, child_name) == 0) {
                         return l;
                 }
                 if (l->children) {
--- a/loudmouth/lm-message-node.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-message-node.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-message.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-message.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
@@ -77,7 +77,7 @@
         for (i = LM_MESSAGE_TYPE_MESSAGE;
 	     i <= LM_MESSAGE_TYPE_STREAM_ERROR;
 	     ++i) {
-                if (g_ascii_strcasecmp (type_str, type_names[i].name) == 0) {
+                if (strcmp (type_str, type_names[i].name) == 0) {
                         return i;
                 }
         }
--- a/loudmouth/lm-message.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-message.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-parser.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-parser.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
@@ -107,7 +107,7 @@
 						NULL);
 	}
 	
-	if (g_ascii_strcasecmp ("stream:stream", node_name) == 0) {
+	if (strcmp ("stream:stream", node_name) == 0) {
 		parser_end_node_cb (context,
 				    "stream:stream",
 				    user_data, 
@@ -128,8 +128,8 @@
 	g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_PARSER,
 	       "Trying to close node: %s\n", node_name);
 
-	if (g_ascii_strcasecmp (parser->cur_node->name, node_name) != 0) {
-		if (g_ascii_strcasecmp (node_name, "stream:stream")) {
+	if (strcmp (parser->cur_node->name, node_name) != 0) {
+		if (strcmp (node_name, "stream:stream")) {
 			g_print ("Got an stream:stream end\n");
 		}
 		g_warning ("Trying to close node that isn't open: %s",
@@ -226,7 +226,7 @@
 	parser->m_parser->error         = parser_error_cb;
 
 	parser->context = g_markup_parse_context_new (parser->m_parser, 0,
-						    parser, NULL);
+						      parser, NULL);
 
 	parser->cur_root = NULL;
 	parser->cur_node = NULL;
--- a/loudmouth/lm-parser.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-parser.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-sha.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-sha.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-utils.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-utils.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/lm-utils.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/lm-utils.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/loudmouth.h	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/loudmouth.h	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or
--- a/loudmouth/test-lm.c	Wed Jun 11 16:44:10 2003 +0000
+++ b/loudmouth/test-lm.c	Fri Jun 13 16:08:46 2003 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@codefactory.se>
+ * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
  * Copyright (C) 2003 CodeFactory AB. 
  *
  * This program is free software; you can redistribute it and/or