loudmouth/inc/libloudmouth_wsd_solution.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /*
       
     2  * Copyright (C) 2003 Imendio AB
       
     3  *
       
     4  * This program is free software; you can redistribute it and/or
       
     5  * modify it under the terms of the GNU Lesser General Public License as
       
     6  * published by the Free Software Foundation; either version 2 of the
       
     7  * License, or (at your option) any later version.
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12  * Lesser General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU Lesser General Public
       
    15  * License along with this program; if not, write to the
       
    16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17  * Boston, MA 02111-1307, USA.
       
    18  */
       
    19  
       
    20 #ifndef _LIBLOUDMOUTH_WSD_H
       
    21 #define _LIBLOUDMOUTH_WSD_H
       
    22 #include "libloudmouth_wsd_macros.h"
       
    23 #include "lm_enums.h"
       
    24 #include "ghash.h"
       
    25 #include <gutils.h>
       
    26 #include "lm-internals.h"
       
    27 #include <glib/gtypes.h>
       
    28 /*#include "lm-debug.h"
       
    29 #include "lm-message.h"
       
    30 #include "lm-utils.h"
       
    31 #include "base64.h"
       
    32 #include "lm-misc.h"
       
    33 #include "lm-sha.h"*/
       
    34 
       
    35 #if EMULATOR
       
    36 #ifdef __cplusplus
       
    37 extern "C" 
       
    38 {
       
    39 #endif
       
    40 typedef struct _TypeNames TypeNames;
       
    41 
       
    42 struct _TypeNames 
       
    43 	{
       
    44     LmMessageType  type;
       
    45     const gchar   name[20];
       
    46 
       
    47   	};
       
    48 
       
    49 
       
    50 typedef struct _SubTypeNames SubTypeNames;
       
    51 
       
    52 struct _SubTypeNames 
       
    53 	{
       
    54     LmMessageSubType  type;
       
    55     const gchar   name[20];
       
    56 
       
    57   	};
       
    58 
       
    59 
       
    60 struct libloudmouth_global_struct
       
    61 	{
       
    62 	VARIABLE_DECL(debug_flags, g, lm_debug,LmLogLevelFlags)	
       
    63 	VARIABLE_DECL(initialized, g, lm_debug,gboolean)
       
    64 	VARIABLE_DECL(log_handler_id, g, lm_debug,guint)
       
    65 	VARIABLE_DECL_ARRAY(type_names, s, lm_message,TypeNames,13)
       
    66 	VARIABLE_DECL_ARRAY(sub_type_names, s, lm_message,SubTypeNames,14)
       
    67 	VARIABLE_DECL(initialized, s, lm_ssl_openssl,gboolean)
       
    68 	VARIABLE_DECL(last_id, s, lm_utils,guint) 
       
    69 	VARIABLE_DECL_ARRAY(base64chars, s, lm_utils, gchar, 256) 
       
    70 	VARIABLE_DECL_ARRAY(ret_val, s, lm_sha, gchar, 256)
       
    71 	VARIABLE_DECL_ARRAY(encoding, s, lm_base64, gchar, 256) 
       
    72 	VARIABLE_DECL_ARRAY(buf, s, lm_misc, char, 256)
       
    73 	VARIABLE_DECL(initialised, g, lm_sock,gboolean)
       
    74 
       
    75     
       
    76       /*END-global vars*/
       
    77           
       
    78     };
       
    79 
       
    80 struct libloudmouth_global_struct * libloudmouth_ImpurePtr();
       
    81 int libloudmouth_Init(struct libloudmouth_global_struct *);
       
    82 #ifdef __cplusplus
       
    83 }
       
    84 #endif
       
    85 #endif //EMULATOR
       
    86 #endif //header guard ifdef _LIBGABBLE_WSD_H
       
    87