mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +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 *
|
||||
calls_dummy_provider_new ()
|
||||
calls_dummy_provider_new (void)
|
||||
{
|
||||
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)
|
||||
|
||||
CallsDummyProvider *calls_dummy_provider_new ();
|
||||
CallsDummyProvider *calls_dummy_provider_new (void);
|
||||
void calls_dummy_provider_add_origin (CallsDummyProvider *self,
|
||||
const gchar *name);
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ calls_sip_media_manager_init (CallsSipMediaManager *self)
|
|||
/* Public functions */
|
||||
|
||||
CallsSipMediaManager *
|
||||
calls_sip_media_manager_default ()
|
||||
calls_sip_media_manager_default (void)
|
||||
{
|
||||
static CallsSipMediaManager *instance = NULL;
|
||||
|
||||
|
|
|
@ -488,7 +488,7 @@ calls_sip_provider_add_origin (CallsSipProvider *self,
|
|||
|
||||
|
||||
CallsSipProvider *
|
||||
calls_sip_provider_new ()
|
||||
calls_sip_provider_new (void)
|
||||
{
|
||||
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)
|
||||
|
||||
CallsSipProvider *calls_sip_provider_new ();
|
||||
CallsSipProvider *calls_sip_provider_new (void);
|
||||
CallsSipOrigin *calls_sip_provider_add_origin (CallsSipProvider *self,
|
||||
CallsCredentials *credentials,
|
||||
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
|
||||
*/
|
||||
GList *
|
||||
media_codecs_get_candidates ()
|
||||
media_codecs_get_candidates (void)
|
||||
{
|
||||
GList *candidates = NULL;
|
||||
|
||||
|
|
|
@ -47,4 +47,4 @@ typedef struct {
|
|||
MediaCodecInfo* media_codec_by_name (const char *name);
|
||||
MediaCodecInfo* media_codec_by_payload_id (uint payload_id);
|
||||
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 *
|
||||
calls_contacts_box_new ()
|
||||
calls_contacts_box_new (void)
|
||||
{
|
||||
return g_object_new (CALLS_TYPE_CONTACTS_BOX, NULL);
|
||||
}
|
||||
|
|
|
@ -298,7 +298,7 @@ calls_credentials_init (CallsCredentials *self)
|
|||
|
||||
|
||||
CallsCredentials *
|
||||
calls_credentials_new ()
|
||||
calls_credentials_new (void)
|
||||
{
|
||||
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);
|
||||
|
||||
|
||||
CallsCredentials *calls_credentials_new ();
|
||||
CallsCredentials *calls_credentials_new (void);
|
||||
gboolean calls_credentials_update_from_keyfile (CallsCredentials *self,
|
||||
GKeyFile *key_file,
|
||||
const char *name);
|
||||
|
|
|
@ -143,7 +143,7 @@ calls_in_app_notification_init (CallsInAppNotification *self)
|
|||
|
||||
|
||||
CallsInAppNotification *
|
||||
calls_in_app_notification_new ()
|
||||
calls_in_app_notification_new (void)
|
||||
{
|
||||
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)
|
||||
|
||||
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_hide (CallsInAppNotification *self);
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ calls_notifier_class_init (CallsNotifierClass *klass)
|
|||
}
|
||||
|
||||
CallsNotifier *
|
||||
calls_notifier_new ()
|
||||
calls_notifier_new (void)
|
||||
{
|
||||
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);
|
||||
|
||||
CallsNotifier *calls_notifier_new ();
|
||||
CallsNotifier *calls_notifier_new (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -732,7 +732,7 @@ calls_record_store_init (CallsRecordStore *self)
|
|||
|
||||
|
||||
CallsRecordStore *
|
||||
calls_record_store_new ()
|
||||
calls_record_store_new (void)
|
||||
{
|
||||
return g_object_new (CALLS_TYPE_RECORD_STORE,
|
||||
"item-type", CALLS_TYPE_CALL_RECORD,
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <libpeas/peas.h>
|
||||
|
||||
static void
|
||||
test_account_basic ()
|
||||
test_account_basic (void)
|
||||
{
|
||||
CallsCredentials *alice = calls_credentials_new ();
|
||||
CallsCredentials *bob = calls_credentials_new ();
|
||||
|
|
|
@ -26,7 +26,7 @@ call_remove_cb (CallsManager *manager, CallsCall *call)
|
|||
}
|
||||
|
||||
static void
|
||||
test_calls_manager_without_provider ()
|
||||
test_calls_manager_without_provider (void)
|
||||
{
|
||||
guint no_origins;
|
||||
GListModel *origins;
|
||||
|
@ -46,7 +46,7 @@ test_calls_manager_without_provider ()
|
|||
}
|
||||
|
||||
static void
|
||||
test_calls_manager_dummy_provider ()
|
||||
test_calls_manager_dummy_provider (void)
|
||||
{
|
||||
g_autoptr (CallsManager) manager = calls_manager_new ();
|
||||
GListModel *origins;
|
||||
|
@ -99,7 +99,7 @@ test_calls_manager_dummy_provider ()
|
|||
}
|
||||
|
||||
static void
|
||||
test_calls_manager_mm_provider ()
|
||||
test_calls_manager_mm_provider (void)
|
||||
{
|
||||
GListModel *origins_tel;
|
||||
g_autoptr (CallsManager) manager = calls_manager_new ();
|
||||
|
@ -121,7 +121,7 @@ test_calls_manager_mm_provider ()
|
|||
}
|
||||
|
||||
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) bob = NULL;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <libpeas/peas.h>
|
||||
|
||||
static void
|
||||
test_calls_plugin_loading ()
|
||||
test_calls_plugin_loading (void)
|
||||
{
|
||||
g_autoptr (CallsProvider) dummy_provider = NULL;
|
||||
g_autoptr (CallsProvider) mm_provider = NULL;
|
||||
|
|
|
@ -438,7 +438,7 @@ find_string_in_sdp_message (const char *sdp,
|
|||
}
|
||||
|
||||
static void
|
||||
test_sip_media_manager ()
|
||||
test_sip_media_manager (void)
|
||||
{
|
||||
g_autoptr (CallsSipMediaManager) manager = calls_sip_media_manager_default ();
|
||||
char *sdp_message = NULL;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <gtk/gtk.h>
|
||||
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue