author | psykose <alice@ayaya.dev> |
Thu, 21 Apr 2022 20:23:32 +0200 | |
changeset 744 | 4ebe32453682 |
parent 690 | 7ccf2113ec5f |
permissions | -rw-r--r-- |
516
4dd3aa6b83e5
Change the tab width to 4 steps in the emacs headers
Mikael Hallendal <micke@imendio.com>
parents:
515
diff
changeset
|
1 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
457 | 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 |
|
690
7ccf2113ec5f
Update the postal address of the FSF
Frank Zschockelt <lm@freakysoft.de>
parents:
518
diff
changeset
|
16 |
* License along with this program; if not, see <https://www.gnu.org/licenses> |
457 | 17 |
*/ |
18 |
||
19 |
#ifndef __LM_ASYNCNS_RESOLVER_H__ |
|
20 |
#define __LM_ASYNCNS_RESOLVER_H__ |
|
21 |
||
744
4ebe32453682
fix macro define for freeaddrinfo with asyncns
psykose <alice@ayaya.dev>
parents:
690
diff
changeset
|
22 |
#include <config.h> |
4ebe32453682
fix macro define for freeaddrinfo with asyncns
psykose <alice@ayaya.dev>
parents:
690
diff
changeset
|
23 |
|
457 | 24 |
#include <glib-object.h> |
25 |
||
744
4ebe32453682
fix macro define for freeaddrinfo with asyncns
psykose <alice@ayaya.dev>
parents:
690
diff
changeset
|
26 |
#ifdef HAVE_ASYNCNS |
4ebe32453682
fix macro define for freeaddrinfo with asyncns
psykose <alice@ayaya.dev>
parents:
690
diff
changeset
|
27 |
#define freeaddrinfo(x) asyncns_freeaddrinfo(x) |
4ebe32453682
fix macro define for freeaddrinfo with asyncns
psykose <alice@ayaya.dev>
parents:
690
diff
changeset
|
28 |
#endif |
4ebe32453682
fix macro define for freeaddrinfo with asyncns
psykose <alice@ayaya.dev>
parents:
690
diff
changeset
|
29 |
|
457 | 30 |
#include "lm-resolver.h" |
31 |
||
32 |
G_BEGIN_DECLS |
|
33 |
||
34 |
#define LM_TYPE_ASYNCNS_RESOLVER (lm_asyncns_resolver_get_type ()) |
|
35 |
#define LM_ASYNCNS_RESOLVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LM_TYPE_ASYNCNS_RESOLVER, LmAsyncnsResolver)) |
|
36 |
#define LM_ASYNCNS_RESOLVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LM_TYPE_ASYNCNS_RESOLVER, LmAsyncnsResolverClass)) |
|
37 |
#define LM_IS_ASYNCNS_RESOLVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LM_TYPE_ASYNCNS_RESOLVER)) |
|
38 |
#define LM_IS_ASYNCNS_RESOLVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LM_TYPE_ASYNCNS_RESOLVER)) |
|
39 |
#define LM_ASYNCNS_RESOLVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LM_TYPE_ASYNCNS_RESOLVER, LmAsyncnsResolverClass)) |
|
40 |
||
41 |
typedef struct LmAsyncnsResolver LmAsyncnsResolver; |
|
42 |
typedef struct LmAsyncnsResolverClass LmAsyncnsResolverClass; |
|
43 |
||
44 |
struct LmAsyncnsResolver { |
|
518
cdd6a0c5b439
Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents:
516
diff
changeset
|
45 |
LmResolver parent; |
457 | 46 |
}; |
47 |
||
48 |
struct LmAsyncnsResolverClass { |
|
518
cdd6a0c5b439
Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents:
516
diff
changeset
|
49 |
LmResolverClass parent_class; |
457 | 50 |
}; |
51 |
||
52 |
GType lm_asyncns_resolver_get_type (void); |
|
53 |
||
54 |
G_END_DECLS |
|
55 |
||
56 |
#endif /* __LM_ASYNCNS_RESOLVER_H__ */ |
|
57 |