mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Clean up platform-specific includes
The problem was pointed out in bug 618029. To solve it, we moved the GUnixFDList typedef to giotypes.h.
This commit is contained in:
parent
dd3551e7c3
commit
8f89b63930
@ -38,6 +38,8 @@
|
||||
#include "gioerror.h"
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#include "gunixfdlist.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
@ -25,10 +25,6 @@
|
||||
|
||||
#include <gio/giotypes.h>
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#include <gio/gunixfdlist.h>
|
||||
#endif
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define G_TYPE_DBUS_MESSAGE (g_dbus_message_get_type ())
|
||||
@ -111,11 +107,9 @@ guchar *g_dbus_message_get_header_fields (GDBusMessage
|
||||
GVariant *g_dbus_message_get_body (GDBusMessage *message);
|
||||
void g_dbus_message_set_body (GDBusMessage *message,
|
||||
GVariant *body);
|
||||
#ifdef G_OS_UNIX
|
||||
GUnixFDList *g_dbus_message_get_unix_fd_list (GDBusMessage *message);
|
||||
void g_dbus_message_set_unix_fd_list (GDBusMessage *message,
|
||||
GUnixFDList *fd_list);
|
||||
#endif
|
||||
|
||||
guint32 g_dbus_message_get_reply_serial (GDBusMessage *message);
|
||||
void g_dbus_message_set_reply_serial (GDBusMessage *message,
|
||||
|
@ -335,6 +335,7 @@ struct _GOutputVector {
|
||||
|
||||
typedef struct _GCredentials GCredentials;
|
||||
typedef struct _GUnixCredentialsMessage GUnixCredentialsMessage;
|
||||
typedef struct _GUnixFDList GUnixFDList;
|
||||
typedef struct _GDBusMessage GDBusMessage;
|
||||
typedef struct _GDBusConnection GDBusConnection;
|
||||
typedef struct _GMessageBusConnection GMessageBusConnection;
|
||||
|
@ -23,7 +23,7 @@
|
||||
#ifndef __G_UNIX_FD_LIST_H__
|
||||
#define __G_UNIX_FD_LIST_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@ -41,7 +41,6 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GUnixFDListPrivate GUnixFDListPrivate;
|
||||
typedef struct _GUnixFDListClass GUnixFDListClass;
|
||||
typedef struct _GUnixFDList GUnixFDList;
|
||||
|
||||
struct _GUnixFDListClass
|
||||
{
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include "gunixfdmessage.h"
|
||||
#include "gunixfdlist.h"
|
||||
#include "gioerror.h"
|
||||
|
||||
#include "gioalias.h"
|
||||
|
@ -23,8 +23,8 @@
|
||||
#ifndef __G_UNIX_FD_MESSAGE_H__
|
||||
#define __G_UNIX_FD_MESSAGE_H__
|
||||
|
||||
#include <gio/gunixfdlist.h>
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
|
||||
/* see gdbus-example-server.c for the server implementation */
|
||||
static gint
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <gio/gunixsocketaddress.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
|
||||
#include "gdbus-tests.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user