*
* Connection Manager
*
- * Copyright (C) 2007 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2010 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
extern "C" {
#endif
-#include <connman/iface.h>
+/**
+ * SECTION:resolver
+ * @title: Resolver premitives
+ * @short_description: Functions for registering resolver modules
+ */
+
+int connman_resolver_append(const char *interface, const char *domain,
+ const char *server);
+int connman_resolver_append_lifetime(const char *interface, const char *domain,
+ const char *server, unsigned int lifetime);
+int connman_resolver_remove(const char *interface, const char *domain,
+ const char *server);
+int connman_resolver_remove_all(const char *interface);
-struct connman_resolver_driver {
- const char *name;
- int (*append) (struct connman_iface *iface, const char *nameserver);
- int (*remove) (struct connman_iface *iface);
-};
+int connman_resolver_append_public_server(const char *server);
+int connman_resolver_remove_public_server(const char *server);
-extern int connman_resolver_register(struct connman_resolver_driver *driver);
-extern void connman_resolver_unregister(struct connman_resolver_driver *driver);
+void connman_resolver_flush(void);
#ifdef __cplusplus
}