diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-03-24 11:02:06 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-03-24 11:02:06 +0100 |
commit | 1b42fcf6db8cbbcc8cb67dab136b97249c0f0329 (patch) | |
tree | 2bb82b62f3a8930f97408ebfdd9ee9fe5f9fe522 /include/resolver.h | |
parent | 50d81ec56ebdc56fc72d80c189751b40f76738e2 (diff) | |
download | connman-1b42fcf6db8cbbcc8cb67dab136b97249c0f0329.tar.gz connman-1b42fcf6db8cbbcc8cb67dab136b97249c0f0329.tar.bz2 connman-1b42fcf6db8cbbcc8cb67dab136b97249c0f0329.zip |
Add abstraction for resolver modifications
Diffstat (limited to 'include/resolver.h')
-rw-r--r-- | include/resolver.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/resolver.h b/include/resolver.h new file mode 100644 index 00000000..3d9f9902 --- /dev/null +++ b/include/resolver.h @@ -0,0 +1,44 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2007 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef __CONNMAN_RESOLVER_H +#define __CONNMAN_RESOLVER_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <connman/iface.h> + +struct connman_resolver_driver { + const char *name; + int (*append) (struct connman_iface *iface, const char *nameserver); + int (*remove) (struct connman_iface *iface); +}; + +extern int connman_resolver_register(struct connman_resolver_driver *driver); +extern void connman_resolver_unregister(struct connman_resolver_driver *driver); + +#ifdef __cplusplus +} +#endif + +#endif /* __CONNMAN_RESOLVER_H */ |