loudmouth/lm-internals.h
author hallski <hallski>
Fri, 13 Jun 2003 16:08:46 +0000
changeset 7 d8eae83450ac
parent 4 52f92481d8de
child 57 6b168a8917f7
permissions -rw-r--r--
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

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
 * Copyright (C) 2003 CodeFactory AB. 
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

/* Private functions that are internal to the library */

#ifndef __LM_INTERNALS_H__
#define __LM_INTERNALS_H__

#include "lm-message.h"
#include "lm-message-handler.h"
#include "lm-message-node.h"

typedef struct {
	gpointer       func;
	gpointer       user_data;
	GDestroyNotify notify;
} LmCallback;

LmCallback *_lm_utils_new_callback (gpointer func, 
				    gpointer user_data,
				    GDestroyNotify notify);
void _lm_utils_free_callback (LmCallback *cb);

gchar *            _lm_utils_generate_id             (void);
LmHandlerResult _lm_message_handler_handle_message   (LmMessageHandler *handler,
						      LmConnection     *connection,
						      LmMessage        *messag);

const gchar *      _lm_message_type_to_string         (LmMessageType     type);
const gchar *      _lm_message_sub_type_to_string     (LmMessageSubType  type);
LmMessage *        _lm_message_new_from_node          (LmMessageNode    *node);
void               _lm_message_node_add_child_node    (LmMessageNode    *node,
						       LmMessageNode    *child);
LmMessageNode *    _lm_message_node_new               (const gchar  *name);
void               _lm_debug_init                     (void);

#endif /* __LM_INTERNALS_H__ */