Blame glib/glib-private.h

Packit ae235b
/* glib-private.h - GLib-internal private API, shared between glib, gobject, gio
Packit ae235b
 * Copyright (C) 2011 Red Hat, Inc.
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General Public License
Packit ae235b
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __GLIB_PRIVATE_H__
Packit ae235b
#define __GLIB_PRIVATE_H__
Packit ae235b
Packit ae235b
#include <glib.h>
Packit ae235b
#include "gwakeup.h"
Packit ae235b
#include "gstdioprivate.h"
Packit ae235b
Packit ae235b
#if defined(__GNUC__)
Packit ae235b
# define _g_alignof(type) (__alignof__ (type))
Packit ae235b
#else
Packit ae235b
# define _g_alignof(type) (G_STRUCT_OFFSET (struct { char a; type b; }, b))
Packit ae235b
#endif
Packit ae235b
Packit ae235b
GMainContext *          g_get_worker_context            (void);
Packit ae235b
gboolean                g_check_setuid                  (void);
Packit ae235b
GMainContext *          g_main_context_new_with_next_id (guint next_id);
Packit ae235b
Packit ae235b
#ifdef G_OS_WIN32
Packit ae235b
gchar *_glib_get_dll_directory (void);
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
gchar *_glib_get_locale_dir    (void);
Packit ae235b
#endif
Packit ae235b
Packit ae235b
GDir * g_dir_open_with_errno (const gchar *path, guint flags);
Packit ae235b
GDir * g_dir_new_from_dirp (gpointer dirp);
Packit ae235b
Packit ae235b
#define GLIB_PRIVATE_CALL(symbol) (glib__private__()->symbol)
Packit ae235b
Packit ae235b
typedef struct {
Packit ae235b
  /* See gwakeup.c */
Packit ae235b
  GWakeup *             (* g_wakeup_new)                (void);
Packit ae235b
  void                  (* g_wakeup_free)               (GWakeup *wakeup);
Packit ae235b
  void                  (* g_wakeup_get_pollfd)         (GWakeup *wakeup,
Packit ae235b
                                                        GPollFD *poll_fd);
Packit ae235b
  void                  (* g_wakeup_signal)             (GWakeup *wakeup);
Packit ae235b
  void                  (* g_wakeup_acknowledge)        (GWakeup *wakeup);
Packit ae235b
Packit ae235b
  /* See gmain.c */
Packit ae235b
  GMainContext *        (* g_get_worker_context)        (void);
Packit ae235b
Packit ae235b
  gboolean              (* g_check_setuid)              (void);
Packit ae235b
  GMainContext *        (* g_main_context_new_with_next_id) (guint next_id);
Packit ae235b
Packit ae235b
  GDir *                (* g_dir_open_with_errno)       (const gchar *path,
Packit ae235b
                                                         guint        flags);
Packit ae235b
  GDir *                (* g_dir_new_from_dirp)         (gpointer dirp);
Packit ae235b
Packit ae235b
  /* See glib-init.c */
Packit ae235b
  void                  (* glib_init)                   (void);
Packit ae235b
Packit ae235b
  /* See gstdio.c */
Packit ae235b
#ifdef G_OS_WIN32
Packit ae235b
  int                   (* g_win32_stat_utf8)           (const gchar       *filename,
Packit ae235b
                                                         GWin32PrivateStat *buf);
Packit ae235b
Packit ae235b
  int                   (* g_win32_lstat_utf8)          (const gchar       *filename,
Packit ae235b
                                                         GWin32PrivateStat *buf);
Packit ae235b
Packit ae235b
  int                   (* g_win32_readlink_utf8)       (const gchar *filename,
Packit ae235b
                                                         gchar       *buf,
Packit ae235b
                                                         gsize        buf_size);
Packit ae235b
Packit ae235b
  int                   (* g_win32_fstat)               (int                fd,
Packit ae235b
                                                         GWin32PrivateStat *buf);
Packit ae235b
#endif
Packit ae235b
Packit ae235b
Packit ae235b
  /* Add other private functions here, initialize them in glib-private.c */
Packit ae235b
} GLibPrivateVTable;
Packit ae235b
Packit ae235b
GLIB_AVAILABLE_IN_ALL
Packit ae235b
GLibPrivateVTable *glib__private__ (void);
Packit ae235b
Packit ae235b
#endif /* __GLIB_PRIVATE_H__ */