cleanup: Prefix & rename create_socketpair

This commit is contained in:
Bilal Elmoussaoui 2023-06-23 22:28:34 +02:00
parent 61846c127b
commit 7fafb9f268
3 changed files with 6 additions and 6 deletions

View File

@ -725,7 +725,7 @@ _mks_paintable_new (GCancellable *cancellable,
/* Create a socketpair() to use for D-Bus P2P protocol. We will be receiving /* Create a socketpair() to use for D-Bus P2P protocol. We will be receiving
* DMA-BUF FDs over this. * DMA-BUF FDs over this.
*/ */
if (!create_socketpair (&us, &them, error)) if (!mks_socketpair_create (&us, &them, error))
return NULL; return NULL;
/* Create socket for our side of the socket pair */ /* Create socket for our side of the socket pair */

View File

@ -44,7 +44,7 @@ G_BEGIN_DECLS
#endif #endif
gboolean create_socketpair (int *us, gboolean mks_socketpair_create (int *us,
int *them, int *them,
GError **error); GError **error);
gboolean mks_scroll_event_is_inverted (GdkEvent *event); gboolean mks_scroll_event_is_inverted (GdkEvent *event);

View File

@ -92,7 +92,7 @@ mks_scroll_event_is_inverted (GdkEvent *event)
} }
gboolean gboolean
create_socketpair (int *us, mks_socketpair_create (int *us,
int *them, int *them,
GError **error) GError **error)
{ {
@ -165,7 +165,7 @@ mks_socketpair_connection_new (GDBusConnectionFlags flags,
g_task_set_source_tag (task, mks_socketpair_connection_new); g_task_set_source_tag (task, mks_socketpair_connection_new);
g_task_set_task_data (task, GINT_TO_POINTER (-1), NULL); g_task_set_task_data (task, GINT_TO_POINTER (-1), NULL);
if (!create_socketpair (&us, &them, &error) || if (!mks_socketpair_create (&us, &them, &error) ||
!(socket = g_socket_new_from_fd (us, &error))) !(socket = g_socket_new_from_fd (us, &error)))
{ {
g_task_return_error (task, g_steal_pointer (&error)); g_task_return_error (task, g_steal_pointer (&error));