Enable compilation in maemo fremantle sdk.
[connman] / include / resolver.h
index 77a95cf..d5fefe9 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  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
@@ -32,13 +32,26 @@ extern "C" {
  * @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