X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fresolver.h;h=70a02adeaed254654d3874263732b7e3f4d032ba;hb=a424f79696a666ac27812d23af170552e760309d;hp=d849e08ae7a564621ecc26216387c67b9c599119;hpb=aad2c32df36c15ccafaadd5c0f7f71aff4c21995;p=platform%2Fupstream%2Fconnman.git diff --git a/include/resolver.h b/include/resolver.h old mode 100644 new mode 100755 index d849e08..70a02ad --- a/include/resolver.h +++ b/include/resolver.h @@ -2,7 +2,7 @@ * * Connection Manager * - * Copyright (C) 2007-2008 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 @@ -32,25 +32,13 @@ 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, +int connman_resolver_append(int index, 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, +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); -extern int connman_resolver_remove_all(const char *interface); +int connman_resolver_remove_all(int index); #ifdef __cplusplus }