telepathygabble/src/telepathy-errors.c
branchRCL_3
changeset 11 3404599e4dda
parent 9 46cc8e302e43
equal deleted inserted replaced
9:46cc8e302e43 11:3404599e4dda
     1 /*
       
     2  * telepathy-errors.c - Source for D-Bus error types used in telepathy
       
     3  * Copyright (C) 2005 Collabora Ltd.
       
     4  * 
       
     5  *
       
     6  * This library is free software; you can redistribute it and/or
       
     7  * modify it under the terms of the GNU Lesser General Public
       
     8  * License as published by the Free Software Foundation; either
       
     9  * version 2.1 of the License, or (at your option) any later version.
       
    10  *
       
    11  * This library is distributed in the hope that it will be useful,
       
    12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    14  * Lesser General Public License for more details.
       
    15  *
       
    16  * You should have received a copy of the GNU Lesser General Public
       
    17  * License along with this library; if not, write to the Free Software
       
    18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    19  */
       
    20 
       
    21 #include <glib.h>
       
    22 #include "telepathy-errors.h"
       
    23 
       
    24 #ifdef EMULATOR
       
    25 #include "libgabble_wsd_solution.h"
       
    26 
       
    27 	GET_STATIC_VAR_FROM_TLS(quark,gabble_errors,GQuark)
       
    28 	#define quark (*GET_WSD_VAR_NAME(quark,gabble_errors, s)())		
       
    29 	
       
    30 #endif
       
    31 
       
    32 #ifdef SYMBIAN
       
    33 EXPORT_C
       
    34 #endif
       
    35 GQuark
       
    36 telepathy_errors_quark (void)
       
    37 {
       
    38 #ifndef EMULATOR
       
    39   static GQuark quark = 0;
       
    40 #endif
       
    41   
       
    42   if (!quark)
       
    43     quark = g_quark_from_static_string ("telepathy_errors");
       
    44   return quark;
       
    45 }