tp-helpers.h   tp-helpers.h 
skipping to change at line 26 skipping to change at line 26
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 U SA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 U SA
*/ */
#ifndef __TELEPATHY_HELPERS_H__ #ifndef __TELEPATHY_HELPERS_H__
#define __TELEPATHY_HELPERS_H__ #define __TELEPATHY_HELPERS_H__
#include <glib.h> #include <glib.h>
#include <dbus/dbus-glib.h>
G_BEGIN_DECLS G_BEGIN_DECLS
typedef struct typedef struct
{ {
gpointer key; gpointer key;
gpointer value; gpointer value;
} TpKeyValue; } TpKeyValue;
DBusGConnection * tp_get_bus (); DBusGConnection * tp_get_bus ();
DBusGProxy * tp_get_bus_proxy (); DBusGProxy * tp_get_bus_proxy ();
GSList *tp_hash_to_key_value_list(GHashTable *hashtable); GSList *tp_hash_to_key_value_list(GHashTable *hashtable);
void tp_key_value_list_free(GSList *list); void tp_key_value_list_free(GSList *list);
typedef enum
{
TP_CONNMGR_PROT_PARAM_FLAG_REQUIRED = 1 << 0,
TP_CONNMGR_PROT_PARAM_FLAG_REGISTER = 1 << 1,
TP_CONNMGR_PROT_PARAM_FLAG_HAS_DEFAULT = 1 << 2,
} TpConnMgrProtParamFlag;
typedef struct _tp_connmgr_info TpConnMgrInfo; typedef struct _tp_connmgr_info TpConnMgrInfo;
typedef struct _tp_connmgr_protocol_info TpConnMgrProtInfo; typedef struct _tp_connmgr_protocol_param TpConnMgrProtParam;
struct _tp_connmgr_protocol_info struct _tp_connmgr_protocol_param
{ {
gchar **mandatory_params; TpConnMgrProtParamFlag flags;
gchar **optional_params; gchar *default_value;
gchar *dbus_type;
/* defaul value hash */
GHashTable *default_params;
}; };
struct _tp_connmgr_info struct _tp_connmgr_info
{ {
gchar *name; gchar *name;
gchar *bus_name; gchar *bus_name;
gchar *object_path; gchar *object_path;
gchar **protocols;
/* hash of protocol infos */ /* protocol_name<->(param_name<->TpConnMgrProtParam) */
GHashTable *protocol_info; GHashTable *protocols;
}; };
/* /*
* Lists all the connection manager files. * Lists all the connection manager files.
* @return A list of connection manager names * @return A list of connection manager names
*/ */
GSList *tp_connmgr_list_cms(void); GSList *
tp_connmgr_list_cms (void);
/* /*
* Returns the connection manager information for the given connection mana ger * Returns the connection manager information for the given connection mana ger
* @param cm: the connection manager name string * @param cm: the connection manager name string
* @return A struct containing all the information read from the connection * @return A struct containing all the information read from the connection
* manager file. * manager file.
*/ */
TpConnMgrInfo *tp_connmgr_get_info(gchar *cm); TpConnMgrInfo *
tp_connmgr_get_info (gchar *cm);
void
tp_connmgr_info_free (TpConnMgrInfo *info);
G_END_DECLS G_END_DECLS
#endif /* __TELEPATHY_HELPERS_H__ */ #endif /* __TELEPATHY_HELPERS_H__ */
 End of changes. 9 change blocks. 
12 lines changed or deleted 22 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/