• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

contextc.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008 Nokia Corporation.
00003  *
00004  * Contact: Marius Vollmer <marius.vollmer@nokia.com>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public License
00008  * version 2.1 as published by the Free Software Foundation.
00009  *
00010  * This library is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00018  * 02110-1301 USA
00019  *
00020  */
00021 
00022 #ifndef CONTEXT_C_H
00023 #define CONTEXT_C_H
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 #include <stdlib.h>
00030 #include <dbus/dbus.h>
00031 
00032 typedef void (*ContextProviderSubscriptionChangedCallback) (int subscribe, void* user_data);
00033 
00034 int
00035 context_provider_init           (DBusBusType bus_type,
00036                                  const char* bus_name);
00037 
00038 void
00039 context_provider_stop           (void);
00040 
00041 void
00042 context_provider_install_key    (const char* key,
00043                                  int clear_values_on_subscribe,
00044                                  ContextProviderSubscriptionChangedCallback subscription_changed_cb,
00045                                  void* subscription_changed_cb_target);
00046 
00047 void
00048 context_provider_install_group  (char* const * key_group,
00049                                  int clear_values_on_subscribe,
00050                                  ContextProviderSubscriptionChangedCallback subscription_changed_cb,
00051                                  void* subscription_changed_cb_target);
00052 
00053 void
00054 context_provider_set_integer    (const char* key, int value);
00055 
00056 void
00057 context_provider_set_double     (const char* key, double value);
00058 
00059 void
00060 context_provider_set_boolean    (const char* key, int value);
00061 
00062 void
00063 context_provider_set_string     (const char* key, const char* value);
00064 
00065 void
00066 context_provider_set_null       (const char* key);
00067 
00068 void
00069 context_provider_set_map        (const char* key, void* map, int free_map);
00070 void *
00071 context_provider_map_new        (void);
00072 void
00073 context_provider_map_free       (void* map);
00074 void
00075 context_provider_map_set_integer(void* map, const char* key, int value);
00076 void
00077 context_provider_map_set_double (void* map, const char* key, double value);
00078 void
00079 context_provider_map_set_boolean(void* map, const char* key, int value);
00080 void
00081 context_provider_map_set_string (void* map, const char* key, const char* value);
00082 void
00083 context_provider_map_set_map    (void* map, const char* key, void* value);
00084 void
00085 context_provider_map_set_list   (void* map, const char* key, void* value);
00086 
00087 void
00088 context_provider_set_list       (const char* key, void* list, int free_list);
00089 void *
00090 context_provider_list_new       (void);
00091 void
00092 context_provider_list_free      (void* list);
00093 void
00094 context_provider_list_add_integer(void* list, int value);
00095 void
00096 context_provider_list_add_double(void* list, double value);
00097 void
00098 context_provider_list_add_boolean(void* list, int value);
00099 void
00100 context_provider_list_add_string(void* list, const char* value);
00101 void
00102 context_provider_list_add_map   (void* list, void* value);
00103 void
00104 context_provider_list_add_list  (void* list, void* value);
00105 
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109 
00110 #endif

Generated on Tue Aug 16 2011 15:43:54 for libcontextprovider by  doxygen 1.7.1