util

util

Functions

Description

Functions

CALLS_DEFINE_IFACE_FUNC_BASE()

#define             CALLS_DEFINE_IFACE_FUNC_BASE(prefix,iface,Prefix,Iface,PREFIX,IFACE,function,rettype,errval)

CALLS_DEFINE_IFACE_FUNC_VOID_BASE()

#define             CALLS_DEFINE_IFACE_FUNC_VOID_BASE(prefix,iface,Prefix,Iface,PREFIX,IFACE,function)

CALLS_DEFINE_IFACE_FUNC()

#define             CALLS_DEFINE_IFACE_FUNC(iface,Iface,IFACE,function,rettype,errval)

CALLS_DEFINE_IFACE_FUNC_VOID()

#define             CALLS_DEFINE_IFACE_FUNC_VOID(iface,Iface,IFACE,function)

CALLS_DEFINE_IFACE_GETTER_BASE()

#define             CALLS_DEFINE_IFACE_GETTER_BASE(prefix,iface,Prefix,Iface,PREFIX,IFACE,prop,rettype,errval)

CALLS_DEFINE_IFACE_GETTER()

#define             CALLS_DEFINE_IFACE_GETTER(iface,Iface,IFACE,prop,rettype,errval)

calls_clear_source()

#define             calls_clear_source(source_id_ptr)

calls_clear_signal()

#define             calls_clear_signal(object,handler_id_ptr)

calls_date_time_unref()

#define             calls_date_time_unref(date_time)

calls_object_unref ()

void
calls_object_unref (gpointer object);

calls_list_store_find ()

gboolean
calls_list_store_find (GtkListStore *store,
                       gpointer needle,
                       gint needle_column,
                       GtkTreeIter *iter);

calls_entry_append ()

void
calls_entry_append (GtkEntry *entry,
                    gchar character);

calls_date_time_is_same_day ()

gboolean
calls_date_time_is_same_day (GDateTime *a,
                             GDateTime *b);

calls_date_time_is_yesterday ()

gboolean
calls_date_time_is_yesterday (GDateTime *now,
                              GDateTime *t);

calls_date_time_is_same_year ()

gboolean
calls_date_time_is_same_year (GDateTime *a,
                              GDateTime *b);

calls_number_is_ussd ()

gboolean
calls_number_is_ussd (const char *number);

calls_find_in_store ()

gboolean
calls_find_in_store (GListModel *list,
                     gpointer item,
                     guint *position);

Parameters

list

A GListModel

 

item

The gpointer to find

 

position

The first position of item , if it was found.

[out][optional]

Returns

Whether list contains item . This is mainly a convenience function until we no longer support older glib versions.


get_protocol_from_address ()

const char *
get_protocol_from_address (const char *target);

simply checks for the the scheme of an address without doing any validation

Parameters

target

The target address

 

Returns

The protocol used for address, or NULL if could not determine


get_protocol_from_address_with_fallback ()

const char *
get_protocol_from_address_with_fallback
                               (const char *target);

simply checks for the the scheme of an address without doing any validation

Parameters

target

The address to check

 

Returns

The protocol used for address, or "tel" as a fallback


dtmf_tone_key_is_valid ()

gboolean
dtmf_tone_key_is_valid (char key);

get_call_icon_symbolic_name ()

const char *
get_call_icon_symbolic_name (gboolean inbound,
                             gboolean missed);