lightmelody

changeset 693:0bd87371c3df objectify

Remove lm-error
author David Czech <davidczech@acm.org>
date Thu, 27 Dec 2012 15:29:23 -0800
parents 7bef73e76352
children e6192bb2c9be
files include/loudmouth/lm-error.h include/loudmouth/loudmouth.h src/lm-asyncns-resolver.c src/lm-error.c src/lm-old-socket.c src/lm-sasl.c src/lm-ssl-gnutls.c src/lm-ssl-openssl.c
diffstat 8 files changed, 0 insertions(+), 103 deletions(-) [+]
line diff
     1.1 --- a/include/loudmouth/lm-error.h	Thu Dec 27 18:00:59 2012 -0500
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,57 +0,0 @@
     1.4 -/*
     1.5 - *  Copyright (C) 2012 Copyleft Games Group
     1.6 - *  Copyright (C) 2003 Imendio AB
     1.7 - *
     1.8 - *  This program is free software; you can redistribute it and/or modify
     1.9 - *  it under the terms of the GNU Affero General Public License as published
    1.10 - *  by the Free Software Foundation, either version 3 of the License, or
    1.11 - *  (at your option) any later version.
    1.12 - *
    1.13 - *  This program is distributed in the hope that it will be useful,
    1.14 - *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 - *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.16 - *  GNU Affero General Public License for more details.
    1.17 - *
    1.18 - *  You should have received a copy of the GNU Affero General Public License
    1.19 - *  along with this program; if not, see http://www.gnu.org/licenses
    1.20 - *
    1.21 - */
    1.22 -
    1.23 -#ifndef __LM_ERROR_H__
    1.24 -#define __LM_ERROR_H__
    1.25 -
    1.26 -#if !defined (LM_INSIDE_LIGHTMELODY_H) && !defined (LM_COMPILATION)
    1.27 -#error "Only <lightmelody/lightmelody.h> can be included directly, this file may disappear or change contents."
    1.28 -#endif
    1.29 -
    1.30 -#include <glib.h>
    1.31 -
    1.32 -G_BEGIN_DECLS
    1.33 -
    1.34 -/**
    1.35 -		 * LM_ERROR:
    1.36 - *
    1.37 - * Macro for getting the error quark.
    1.38 - */
    1.39 -#define LM_ERROR lm_error_quark ()
    1.40 -
    1.41 -/**
    1.42 - * LmError:
    1.43 - * @LM_ERROR_CONNECTION_NOT_OPEN: Connection not open when trying to send a message
    1.44 - * @LM_ERROR_CONNECTION_OPEN: Connection is already open when trying to open it again.
    1.45 - * @LM_ERROR_AUTH_FAILED: Authentication failed while opening connection
    1.46 - * @LM_ERROR_CONNECTION_FAILED:  *
    1.47 - * Describes the problem of the error.
    1.48 - *
    1.49 -typedef enum {
    1.50 -    LM_ERROR_CONNECTION_NOT_OPEN,
    1.51 -    LM_ERROR_CONNECTION_OPEN,
    1.52 -    LM_ERROR_AUTH_FAILED,
    1.53 -    LM_ERROR_CONNECTION_FAILED
    1.54 -} LmError;
    1.55 -*/
    1.56 -GQuark lm_error_quark (void) G_GNUC_CONST;
    1.57 -
    1.58 -G_END_DECLS
    1.59 -
    1.60 -#endif /* __LM_ERROR_H__ */
     2.1 --- a/include/loudmouth/loudmouth.h	Thu Dec 27 18:00:59 2012 -0500
     2.2 +++ b/include/loudmouth/loudmouth.h	Thu Dec 27 15:29:23 2012 -0800
     2.3 @@ -22,7 +22,6 @@
     2.4  
     2.5  #define LM_INSIDE_LIGHTMELODY_H 1
     2.6  
     2.7 -#include <loudmouth/lm-error.h>
     2.8  #include <loudmouth/lm-message.h>
     2.9  #include <loudmouth/lm-message-node.h>
    2.10  #include <loudmouth/lm-proxy.h>
     3.1 --- a/src/lm-asyncns-resolver.c	Thu Dec 27 18:00:59 2012 -0500
     3.2 +++ b/src/lm-asyncns-resolver.c	Thu Dec 27 15:29:23 2012 -0800
     3.3 @@ -33,7 +33,6 @@
     3.4  #include <resolv.h>
     3.5  
     3.6  #include "lm-debug.h"
     3.7 -#include <loudmouth/lm-error.h>
     3.8  #include "lm-internals.h"
     3.9  #include "lm-marshal.h"
    3.10  #include "lm-misc.h"
     4.1 --- a/src/lm-error.c	Thu Dec 27 18:00:59 2012 -0500
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,40 +0,0 @@
     4.4 -/*
     4.5 - *  Copyright (C) 2012 Copyleft Games Group
     4.6 - *  Copyright (C) 2003 Imendio AB
     4.7 - *
     4.8 - *  This program is free software; you can redistribute it and/or modify
     4.9 - *  it under the terms of the GNU Affero General Public License as published
    4.10 - *  by the Free Software Foundation, either version 3 of the License, or
    4.11 - *  (at your option) any later version.
    4.12 - *
    4.13 - *  This program is distributed in the hope that it will be useful,
    4.14 - *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    4.15 - *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    4.16 - *  GNU Affero General Public License for more details.
    4.17 - *
    4.18 - *  You should have received a copy of the GNU Affero General Public License
    4.19 - *  along with this program; if not, see http://www.gnu.org/licenses
    4.20 - *
    4.21 - */
    4.22 -
    4.23 -/**
    4.24 - * SECTION:lm-error
    4.25 - * @Title: LmError
    4.26 - * @Short_description: Error reporting.
    4.27 - */
    4.28 -
    4.29 -#include <config.h>
    4.30 -#include <glib.h>
    4.31 -#include <loudmouth/lm-error.h>
    4.32 -
    4.33 -GQuark
    4.34 -lm_error_quark (void)
    4.35 -{
    4.36 -    static GQuark q = 0;
    4.37 -
    4.38 -    if (q == 0) {
    4.39 -        q = g_quark_from_static_string ("lm-error-quark");
    4.40 -    }
    4.41 -
    4.42 -    return q;
    4.43 -}
     5.1 --- a/src/lm-old-socket.c	Thu Dec 27 18:00:59 2012 -0500
     5.2 +++ b/src/lm-old-socket.c	Thu Dec 27 15:29:23 2012 -0800
     5.3 @@ -39,7 +39,6 @@
     5.4  #include <resolv.h>
     5.5  
     5.6  #include "lm-debug.h"
     5.7 -#include <loudmouth/lm-error.h>
     5.8  #include "lm-internals.h"
     5.9  #include "lm-misc.h"
    5.10  #include <loudmouth/lm-proxy.h>
     6.1 --- a/src/lm-sasl.c	Thu Dec 27 18:00:59 2012 -0500
     6.2 +++ b/src/lm-sasl.c	Thu Dec 27 15:29:23 2012 -0800
     6.3 @@ -30,7 +30,6 @@
     6.4  #include <lightmelody.h>
     6.5  #include "lm-sock.h"
     6.6  #include "lm-debug.h"
     6.7 -#include <loudmouth/lm-error.h>
     6.8  #include "lm-internals.h"
     6.9  #include "lm-misc.h"
    6.10  #include "lm-ssl-internals.h"
     7.1 --- a/src/lm-ssl-gnutls.c	Thu Dec 27 18:00:59 2012 -0500
     7.2 +++ b/src/lm-ssl-gnutls.c	Thu Dec 27 15:29:23 2012 -0800
     7.3 @@ -24,7 +24,6 @@
     7.4  
     7.5  #include <lightmelody.h>
     7.6  #include "lm-debug.h"
     7.7 -#include <loudmouth/lm-error.h>
     7.8  #include "lm-ssl-base.h"
     7.9  #include "lm-ssl-internals.h"
    7.10  
     8.1 --- a/src/lm-ssl-openssl.c	Thu Dec 27 18:00:59 2012 -0500
     8.2 +++ b/src/lm-ssl-openssl.c	Thu Dec 27 15:29:23 2012 -0800
     8.3 @@ -26,7 +26,6 @@
     8.4  #include <glib.h>
     8.5  
     8.6  #include "lm-debug.h"
     8.7 -#include <loudmouth/lm-error.h>
     8.8  #include "lm-ssl-base.h"
     8.9  #include "lm-ssl-internals.h"
    8.10