457
|
1 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
|
2 |
/* |
|
3 |
* Copyright (C) 2008 Imendio AB |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU Lesser General Public License as |
|
7 |
* published by the Free Software Foundation; either version 2 of the |
|
8 |
* License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 |
* Lesser General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU Lesser General Public |
|
16 |
* License along with this program; if not, write to the |
|
17 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
18 |
* Boston, MA 02111-1307, USA. |
|
19 |
*/ |
|
20 |
|
|
21 |
#include <config.h> |
|
22 |
|
|
23 |
#include "lm-marshal.h" |
|
24 |
#include "lm-asyncns-resolver.h" |
|
25 |
|
|
26 |
#define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), LM_TYPE_ASYNCNS_RESOLVER, LmAsyncnsResolverPriv)) |
|
27 |
|
|
28 |
typedef struct LmAsyncnsResolverPriv LmAsyncnsResolverPriv; |
|
29 |
struct LmAsyncnsResolverPriv { |
|
30 |
gint my_prop; |
|
31 |
}; |
|
32 |
|
|
33 |
static void asyncns_resolver_finalize (GObject *object); |
|
34 |
static void asyncns_resolver_lookup (LmResolver *resolver); |
|
35 |
static void asyncns_resolver_cancel (LmResolver *resolver); |
|
36 |
|
|
37 |
G_DEFINE_TYPE (LmAsyncnsResolver, lm_asyncns_resolver, LM_TYPE_RESOLVER) |
|
38 |
|
|
39 |
static void |
|
40 |
lm_asyncns_resolver_class_init (LmAsyncnsResolverClass *class) |
|
41 |
{ |
|
42 |
GObjectClass *object_class = G_OBJECT_CLASS (class); |
|
43 |
LmResolverClass *resolver_class = LM_RESOLVER_CLASS (class); |
|
44 |
|
|
45 |
object_class->finalize = asyncns_resolver_finalize; |
|
46 |
|
|
47 |
resolver_class->lookup = asyncns_resolver_lookup; |
|
48 |
resolver_class->cancel = asyncns_resolver_cancel; |
|
49 |
|
|
50 |
g_type_class_add_private (object_class, sizeof (LmAsyncnsResolverPriv)); |
|
51 |
} |
|
52 |
|
|
53 |
static void |
|
54 |
lm_asyncns_resolver_init (LmAsyncnsResolver *asyncns_resolver) |
|
55 |
{ |
|
56 |
LmAsyncnsResolverPriv *priv; |
|
57 |
|
|
58 |
priv = GET_PRIV (asyncns_resolver); |
|
59 |
} |
|
60 |
|
|
61 |
static void |
|
62 |
asyncns_resolver_finalize (GObject *object) |
|
63 |
{ |
|
64 |
LmAsyncnsResolverPriv *priv; |
|
65 |
|
|
66 |
priv = GET_PRIV (object); |
|
67 |
|
|
68 |
(G_OBJECT_CLASS (lm_asyncns_resolver_parent_class)->finalize) (object); |
|
69 |
} |
|
70 |
|
|
71 |
static void |
|
72 |
asyncns_resolver_lookup (LmResolver *resolver) |
|
73 |
{ |
|
74 |
} |
|
75 |
|
|
76 |
static void |
|
77 |
asyncns_resolver_cancel (LmResolver *resolver) |
|
78 |
{ |
|
79 |
} |
|
80 |
|