*
* Connection Manager
*
- * Copyright (C) 2007-2008 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2009 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
* @short_description: Functions for registering resolver modules
*/
+#define CONNMAN_RESOLVER_PRIORITY_LOW -100
+#define CONNMAN_RESOLVER_PRIORITY_DEFAULT 0
+#define CONNMAN_RESOLVER_PRIORITY_HIGH 100
+
struct connman_resolver {
const char *name;
+ int priority;
+ int (*append) (const char *interface, const char *domain,
+ const char *server);
+ int (*remove) (const char *interface, const char *domain,
+ const char *server);
};
extern int connman_resolver_register(struct connman_resolver *resolver);
extern void connman_resolver_unregister(struct connman_resolver *resolver);
+extern int connman_resolver_append(const char *interface, const char *domain,
+ const char *server);
+extern int connman_resolver_remove_all(const char *interface);
+
#ifdef __cplusplus
}
#endif