mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
cleanup: Prefix & rename create_socketpair
This commit is contained in:
parent
61846c127b
commit
7fafb9f268
@ -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 */
|
||||||
|
@ -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);
|
||||||
|
@ -92,9 +92,9 @@ 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)
|
||||||
{
|
{
|
||||||
int fds[2];
|
int fds[2];
|
||||||
int rv;
|
int rv;
|
||||||
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user