mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
Fix old-style warnings all over the codebase
As caught by compiling with `-Wold-style-definition` and `-Wstrict-prototypes`.
This commit is contained in:
parent
38abbc5b18
commit
96a7d901c1
20 changed files with 23 additions and 23 deletions
|
@ -173,7 +173,7 @@ calls_dummy_provider_add_origin (CallsDummyProvider *self,
|
||||||
|
|
||||||
|
|
||||||
CallsDummyProvider *
|
CallsDummyProvider *
|
||||||
calls_dummy_provider_new ()
|
calls_dummy_provider_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_DUMMY_PROVIDER, NULL);
|
return g_object_new (CALLS_TYPE_DUMMY_PROVIDER, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (CallsDummyProvider, calls_dummy_provider, CALLS, DUMMY_PROVIDER, CallsProvider)
|
G_DECLARE_FINAL_TYPE (CallsDummyProvider, calls_dummy_provider, CALLS, DUMMY_PROVIDER, CallsProvider)
|
||||||
|
|
||||||
CallsDummyProvider *calls_dummy_provider_new ();
|
CallsDummyProvider *calls_dummy_provider_new (void);
|
||||||
void calls_dummy_provider_add_origin (CallsDummyProvider *self,
|
void calls_dummy_provider_add_origin (CallsDummyProvider *self,
|
||||||
const gchar *name);
|
const gchar *name);
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ calls_sip_media_manager_init (CallsSipMediaManager *self)
|
||||||
/* Public functions */
|
/* Public functions */
|
||||||
|
|
||||||
CallsSipMediaManager *
|
CallsSipMediaManager *
|
||||||
calls_sip_media_manager_default ()
|
calls_sip_media_manager_default (void)
|
||||||
{
|
{
|
||||||
static CallsSipMediaManager *instance = NULL;
|
static CallsSipMediaManager *instance = NULL;
|
||||||
|
|
||||||
|
|
|
@ -488,7 +488,7 @@ calls_sip_provider_add_origin (CallsSipProvider *self,
|
||||||
|
|
||||||
|
|
||||||
CallsSipProvider *
|
CallsSipProvider *
|
||||||
calls_sip_provider_new ()
|
calls_sip_provider_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_SIP_PROVIDER, NULL);
|
return g_object_new (CALLS_TYPE_SIP_PROVIDER, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (CallsSipProvider, calls_sip_provider, CALLS, SIP_PROVIDER, CallsProvider)
|
G_DECLARE_FINAL_TYPE (CallsSipProvider, calls_sip_provider, CALLS, SIP_PROVIDER, CallsProvider)
|
||||||
|
|
||||||
CallsSipProvider *calls_sip_provider_new ();
|
CallsSipProvider *calls_sip_provider_new (void);
|
||||||
CallsSipOrigin *calls_sip_provider_add_origin (CallsSipProvider *self,
|
CallsSipOrigin *calls_sip_provider_add_origin (CallsSipProvider *self,
|
||||||
CallsCredentials *credentials,
|
CallsCredentials *credentials,
|
||||||
gint local_port,
|
gint local_port,
|
||||||
|
|
|
@ -114,7 +114,7 @@ media_codec_get_gst_capabilities (MediaCodecInfo *codec)
|
||||||
* Returns: (transfer none): A #GList of codec candidates of type #MediaCodecInfo
|
* Returns: (transfer none): A #GList of codec candidates of type #MediaCodecInfo
|
||||||
*/
|
*/
|
||||||
GList *
|
GList *
|
||||||
media_codecs_get_candidates ()
|
media_codecs_get_candidates (void)
|
||||||
{
|
{
|
||||||
GList *candidates = NULL;
|
GList *candidates = NULL;
|
||||||
|
|
||||||
|
|
|
@ -47,4 +47,4 @@ typedef struct {
|
||||||
MediaCodecInfo* media_codec_by_name (const char *name);
|
MediaCodecInfo* media_codec_by_name (const char *name);
|
||||||
MediaCodecInfo* media_codec_by_payload_id (uint payload_id);
|
MediaCodecInfo* media_codec_by_payload_id (uint payload_id);
|
||||||
gchar* media_codec_get_gst_capabilities (MediaCodecInfo *codec);
|
gchar* media_codec_get_gst_capabilities (MediaCodecInfo *codec);
|
||||||
GList* media_codecs_get_candidates ();
|
GList* media_codecs_get_candidates (void);
|
||||||
|
|
|
@ -212,7 +212,7 @@ calls_contacts_box_init (CallsContactsBox *self)
|
||||||
|
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
calls_contacts_box_new ()
|
calls_contacts_box_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_CONTACTS_BOX, NULL);
|
return g_object_new (CALLS_TYPE_CONTACTS_BOX, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,7 +298,7 @@ calls_credentials_init (CallsCredentials *self)
|
||||||
|
|
||||||
|
|
||||||
CallsCredentials *
|
CallsCredentials *
|
||||||
calls_credentials_new ()
|
calls_credentials_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_CREDENTIALS, NULL);
|
return g_object_new (CALLS_TYPE_CREDENTIALS, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||||
G_DECLARE_FINAL_TYPE (CallsCredentials, calls_credentials, CALLS, CREDENTIALS, GObject);
|
G_DECLARE_FINAL_TYPE (CallsCredentials, calls_credentials, CALLS, CREDENTIALS, GObject);
|
||||||
|
|
||||||
|
|
||||||
CallsCredentials *calls_credentials_new ();
|
CallsCredentials *calls_credentials_new (void);
|
||||||
gboolean calls_credentials_update_from_keyfile (CallsCredentials *self,
|
gboolean calls_credentials_update_from_keyfile (CallsCredentials *self,
|
||||||
GKeyFile *key_file,
|
GKeyFile *key_file,
|
||||||
const char *name);
|
const char *name);
|
||||||
|
|
|
@ -143,7 +143,7 @@ calls_in_app_notification_init (CallsInAppNotification *self)
|
||||||
|
|
||||||
|
|
||||||
CallsInAppNotification *
|
CallsInAppNotification *
|
||||||
calls_in_app_notification_new ()
|
calls_in_app_notification_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_IN_APP_NOTIFICATION, NULL);
|
return g_object_new (CALLS_TYPE_IN_APP_NOTIFICATION, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (CallsInAppNotification, calls_in_app_notification, CALLS, IN_APP_NOTIFICATION, GtkRevealer)
|
G_DECLARE_FINAL_TYPE (CallsInAppNotification, calls_in_app_notification, CALLS, IN_APP_NOTIFICATION, GtkRevealer)
|
||||||
|
|
||||||
CallsInAppNotification * calls_in_app_notification_new ();
|
CallsInAppNotification * calls_in_app_notification_new (void);
|
||||||
void calls_in_app_notification_show (CallsInAppNotification *self, const gchar *message);
|
void calls_in_app_notification_show (CallsInAppNotification *self, const gchar *message);
|
||||||
void calls_in_app_notification_hide (CallsInAppNotification *self);
|
void calls_in_app_notification_hide (CallsInAppNotification *self);
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ calls_notifier_class_init (CallsNotifierClass *klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
CallsNotifier *
|
CallsNotifier *
|
||||||
calls_notifier_new ()
|
calls_notifier_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_NOTIFIER, NULL);
|
return g_object_new (CALLS_TYPE_NOTIFIER, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (CallsNotifier, calls_notifier, CALLS, NOTIFIER, GObject);
|
G_DECLARE_FINAL_TYPE (CallsNotifier, calls_notifier, CALLS, NOTIFIER, GObject);
|
||||||
|
|
||||||
CallsNotifier *calls_notifier_new ();
|
CallsNotifier *calls_notifier_new (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
|
@ -732,7 +732,7 @@ calls_record_store_init (CallsRecordStore *self)
|
||||||
|
|
||||||
|
|
||||||
CallsRecordStore *
|
CallsRecordStore *
|
||||||
calls_record_store_new ()
|
calls_record_store_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (CALLS_TYPE_RECORD_STORE,
|
return g_object_new (CALLS_TYPE_RECORD_STORE,
|
||||||
"item-type", CALLS_TYPE_CALL_RECORD,
|
"item-type", CALLS_TYPE_CALL_RECORD,
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include <libpeas/peas.h>
|
#include <libpeas/peas.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_account_basic ()
|
test_account_basic (void)
|
||||||
{
|
{
|
||||||
CallsCredentials *alice = calls_credentials_new ();
|
CallsCredentials *alice = calls_credentials_new ();
|
||||||
CallsCredentials *bob = calls_credentials_new ();
|
CallsCredentials *bob = calls_credentials_new ();
|
||||||
|
|
|
@ -26,7 +26,7 @@ call_remove_cb (CallsManager *manager, CallsCall *call)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_calls_manager_without_provider ()
|
test_calls_manager_without_provider (void)
|
||||||
{
|
{
|
||||||
guint no_origins;
|
guint no_origins;
|
||||||
GListModel *origins;
|
GListModel *origins;
|
||||||
|
@ -46,7 +46,7 @@ test_calls_manager_without_provider ()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_calls_manager_dummy_provider ()
|
test_calls_manager_dummy_provider (void)
|
||||||
{
|
{
|
||||||
g_autoptr (CallsManager) manager = calls_manager_new ();
|
g_autoptr (CallsManager) manager = calls_manager_new ();
|
||||||
GListModel *origins;
|
GListModel *origins;
|
||||||
|
@ -99,7 +99,7 @@ test_calls_manager_dummy_provider ()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_calls_manager_mm_provider ()
|
test_calls_manager_mm_provider (void)
|
||||||
{
|
{
|
||||||
GListModel *origins_tel;
|
GListModel *origins_tel;
|
||||||
g_autoptr (CallsManager) manager = calls_manager_new ();
|
g_autoptr (CallsManager) manager = calls_manager_new ();
|
||||||
|
@ -121,7 +121,7 @@ test_calls_manager_mm_provider ()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_calls_manager_multiple_providers_mm_sip ()
|
test_calls_manager_multiple_providers_mm_sip (void)
|
||||||
{
|
{
|
||||||
g_autoptr (CallsCredentials) alice = NULL;
|
g_autoptr (CallsCredentials) alice = NULL;
|
||||||
g_autoptr (CallsCredentials) bob = NULL;
|
g_autoptr (CallsCredentials) bob = NULL;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <libpeas/peas.h>
|
#include <libpeas/peas.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_calls_plugin_loading ()
|
test_calls_plugin_loading (void)
|
||||||
{
|
{
|
||||||
g_autoptr (CallsProvider) dummy_provider = NULL;
|
g_autoptr (CallsProvider) dummy_provider = NULL;
|
||||||
g_autoptr (CallsProvider) mm_provider = NULL;
|
g_autoptr (CallsProvider) mm_provider = NULL;
|
||||||
|
|
|
@ -438,7 +438,7 @@ find_string_in_sdp_message (const char *sdp,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_sip_media_manager ()
|
test_sip_media_manager (void)
|
||||||
{
|
{
|
||||||
g_autoptr (CallsSipMediaManager) manager = calls_sip_media_manager_default ();
|
g_autoptr (CallsSipMediaManager) manager = calls_sip_media_manager_default ();
|
||||||
char *sdp_message = NULL;
|
char *sdp_message = NULL;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_protocol_prefix ()
|
test_protocol_prefix (void)
|
||||||
{
|
{
|
||||||
g_assert_cmpstr (get_protocol_from_address ("sip:alice@example.org"), ==, "sip");
|
g_assert_cmpstr (get_protocol_from_address ("sip:alice@example.org"), ==, "sip");
|
||||||
g_assert_cmpstr (get_protocol_from_address ("SIP:alice@example.org"), ==, "sip");
|
g_assert_cmpstr (get_protocol_from_address ("SIP:alice@example.org"), ==, "sip");
|
||||||
|
|
Loading…
Reference in a new issue