pspec = g_param_spec_uint ("reason", "The reason",
"The reason why the certificate is being asked for confirmation.",
- 0, NUM_TP_TLS_CERTIFICATE_REJECT_REASONS - 1,
+ 0, TP_NUM_TLS_CERTIFICATE_REJECT_REASONS - 1,
TP_TLS_CERTIFICATE_REJECT_REASON_UNKNOWN,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (oclass, PROP_REASON, pspec);
"Contact presence",
"Presence of contact",
TP_CONNECTION_PRESENCE_TYPE_UNSET,
- NUM_TP_CONNECTION_PRESENCE_TYPES,
+ TP_NUM_CONNECTION_PRESENCE_TYPES,
TP_CONNECTION_PRESENCE_TYPE_UNSET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
static EmpathyPresenceManager * singleton = NULL;
-static const gchar *presence_type_to_status[NUM_TP_CONNECTION_PRESENCE_TYPES] =
+static const gchar *presence_type_to_status[TP_NUM_CONNECTION_PRESENCE_TYPES] =
{
NULL,
"offline",
g_object_class_install_property (object_class,
PROP_STATE,
g_param_spec_uint ("state", "state", "state",
- 0, NUM_TP_CONNECTION_PRESENCE_TYPES,
+ 0, TP_NUM_CONNECTION_PRESENCE_TYPES,
TP_CONNECTION_PRESENCE_TYPE_UNSET,
G_PARAM_READWRITE));
{
const gchar *status;
- g_assert (status_type > 0 && status_type < NUM_TP_CONNECTION_PRESENCE_TYPES);
+ g_assert (status_type > 0 && status_type < TP_NUM_CONNECTION_PRESENCE_TYPES);
status = presence_type_to_status[status_type];
GList *l;
gchar *dir;
gchar *file;
- gint count[NUM_TP_CONNECTION_PRESENCE_TYPES];
+ gint count[TP_NUM_CONNECTION_PRESENCE_TYPES];
gint i;
- for (i = 0; i < NUM_TP_CONNECTION_PRESENCE_TYPES; i++) {
+ for (i = 0; i < TP_NUM_CONNECTION_PRESENCE_TYPES; i++) {
count[i] = 0;
}
pspec = g_param_spec_uint ("state",
"State of this certificate",
"The state of this TLS certificate.",
- 0, NUM_TP_TLS_CERTIFICATE_STATES - 1,
+ 0, TP_NUM_TLS_CERTIFICATE_STATES - 1,
TP_TLS_CERTIFICATE_STATE_PENDING,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (oclass, PROP_STATE, pspec);