1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 20:35:31 +00:00

Various codestyle fixes

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-07-04 00:22:56 +02:00 committed by Evangelos Ribeiro Tzaras
parent 41fe9033ac
commit 2af2b316ec
4 changed files with 12 additions and 14 deletions

View file

@ -85,7 +85,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED
G_IMPLEMENT_INTERFACE_DYNAMIC (CALLS_TYPE_MESSAGE_SOURCE, G_IMPLEMENT_INTERFACE_DYNAMIC (CALLS_TYPE_MESSAGE_SOURCE,
calls_sip_provider_message_source_interface_init) calls_sip_provider_message_source_interface_init)
G_IMPLEMENT_INTERFACE_DYNAMIC (CALLS_TYPE_ACCOUNT_PROVIDER, G_IMPLEMENT_INTERFACE_DYNAMIC (CALLS_TYPE_ACCOUNT_PROVIDER,
calls_sip_provider_account_provider_interface_init)); calls_sip_provider_account_provider_interface_init))
static void static void

View file

@ -25,7 +25,7 @@
#include "calls-sip-util.h" #include "calls-sip-util.h"
gboolean gboolean
check_ipv6 (const gchar *host) check_ipv6 (const char *host)
{ {
/* TODO DNS SRV records to determine whether or not to use IPv6 */ /* TODO DNS SRV records to determine whether or not to use IPv6 */
return FALSE; return FALSE;
@ -33,7 +33,7 @@ check_ipv6 (const gchar *host)
gboolean gboolean
check_sips (const gchar *addr) check_sips (const char *addr)
{ {
/* To keep it simple we only check if the URL starts with "sips:" */ /* To keep it simple we only check if the URL starts with "sips:" */
return g_str_has_prefix (addr, "sips:"); return g_str_has_prefix (addr, "sips:");
@ -41,7 +41,7 @@ check_sips (const gchar *addr)
const gchar * const gchar *
get_protocol_prefix (const gchar *protocol) get_protocol_prefix (const char *protocol)
{ {
if (g_strcmp0 (protocol, "UDP") == 0 || if (g_strcmp0 (protocol, "UDP") == 0 ||
g_strcmp0 (protocol, "TCP") == 0) g_strcmp0 (protocol, "TCP") == 0)
@ -55,7 +55,7 @@ get_protocol_prefix (const gchar *protocol)
gboolean gboolean
protocol_is_valid (const gchar *protocol) protocol_is_valid (const char *protocol)
{ {
return g_strcmp0 (protocol, "UDP") == 0 || return g_strcmp0 (protocol, "UDP") == 0 ||
g_strcmp0 (protocol, "TCP") == 0 || g_strcmp0 (protocol, "TCP") == 0 ||

View file

@ -58,8 +58,8 @@ typedef enum
} SipEngineState; } SipEngineState;
gboolean check_sips (const gchar *addr); gboolean check_sips (const char *addr);
gboolean check_ipv6 (const gchar *host); gboolean check_ipv6 (const char *host);
const gchar *get_protocol_prefix (const gchar *protocol); const char *get_protocol_prefix (const char *protocol);
gboolean protocol_is_valid (const gchar *protocol); gboolean protocol_is_valid (const char *protocol);
guint get_port_for_rtp (void); guint get_port_for_rtp (void);

View file

@ -33,7 +33,7 @@
*/ */
G_DEFINE_INTERFACE (CallsOrigin, calls_origin, CALLS_TYPE_MESSAGE_SOURCE); G_DEFINE_INTERFACE (CallsOrigin, calls_origin, CALLS_TYPE_MESSAGE_SOURCE)
enum { enum {
SIGNAL_CALL_ADDED, SIGNAL_CALL_ADDED,
@ -133,9 +133,7 @@ calls_origin_foreach_call(CallsOrigin *self,
calls = calls_origin_get_calls (self); calls = calls_origin_get_calls (self);
for (node = calls; node; node = node->next) for (node = calls; node; node = node->next)
{ callback (param, CALLS_CALL (node->data), self);
callback (param, CALLS_CALL (node->data), self);
}
} }