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