1 Star 0 Fork 52

刘杰/third_party_glib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xaq.patch 31.49 KB
一键复制 编辑 原始数据 按行查看 历史
刘杰 提交于 2024-02-01 06:37 . glib2.72.2
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpDocuments *gxdp_documents_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpDocuments *gxdp_documents_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+void gxdp_documents_proxy_new_for_bus (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpDocuments *gxdp_documents_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpDocuments *gxdp_documents_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+
+/* ---- */
+
+#define GXDP_TYPE_DOCUMENTS_SKELETON (gxdp_documents_skeleton_get_type ())
+#define GXDP_DOCUMENTS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_DOCUMENTS_SKELETON, GXdpDocumentsSkeleton))
+#define GXDP_DOCUMENTS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_DOCUMENTS_SKELETON, GXdpDocumentsSkeletonClass))
+#define GXDP_DOCUMENTS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_DOCUMENTS_SKELETON, GXdpDocumentsSkeletonClass))
+#define GXDP_IS_DOCUMENTS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_DOCUMENTS_SKELETON))
+#define GXDP_IS_DOCUMENTS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_DOCUMENTS_SKELETON))
+
+typedef struct _GXdpDocumentsSkeleton GXdpDocumentsSkeleton;
+typedef struct _GXdpDocumentsSkeletonClass GXdpDocumentsSkeletonClass;
+typedef struct _GXdpDocumentsSkeletonPrivate GXdpDocumentsSkeletonPrivate;
+
+struct _GXdpDocumentsSkeleton
+{
+ /*< private >*/
+ GDBusInterfaceSkeleton parent_instance;
+ GXdpDocumentsSkeletonPrivate *priv;
+};
+
+struct _GXdpDocumentsSkeletonClass
+{
+ GDBusInterfaceSkeletonClass parent_class;
+};
+
+GType gxdp_documents_skeleton_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpDocumentsSkeleton, g_object_unref)
+#endif
+
+GXdpDocuments *gxdp_documents_skeleton_new (void);
+
+
+/* ------------------------------------------------------------------------ */
+/* Declarations for org.freedesktop.portal.OpenURI */
+
+#define GXDP_TYPE_OPEN_URI (gxdp_open_uri_get_type ())
+#define GXDP_OPEN_URI(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_OPEN_URI, GXdpOpenURI))
+#define GXDP_IS_OPEN_URI(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_OPEN_URI))
+#define GXDP_OPEN_URI_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GXDP_TYPE_OPEN_URI, GXdpOpenURIIface))
+
+struct _GXdpOpenURI;
+typedef struct _GXdpOpenURI GXdpOpenURI;
+typedef struct _GXdpOpenURIIface GXdpOpenURIIface;
+
+struct _GXdpOpenURIIface
+{
+ GTypeInterface parent_iface;
+
+
+ gboolean (*handle_open_directory) (
+ GXdpOpenURI *object,
+ GDBusMethodInvocation *invocation,
+ GUnixFDList *fd_list,
+ const gchar *arg_parent_window,
+ GVariant *arg_fd,
+ GVariant *arg_options);
+
+ gboolean (*handle_open_file) (
+ GXdpOpenURI *object,
+ GDBusMethodInvocation *invocation,
+ GUnixFDList *fd_list,
+ const gchar *arg_parent_window,
+ GVariant *arg_fd,
+ GVariant *arg_options);
+
+ gboolean (*handle_open_uri) (
+ GXdpOpenURI *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *arg_parent_window,
+ const gchar *arg_uri,
+ GVariant *arg_options);
+
+ guint (*get_version) (GXdpOpenURI *object);
+
+};
+
+GType gxdp_open_uri_get_type (void) G_GNUC_CONST;
+
+GDBusInterfaceInfo *gxdp_open_uri_interface_info (void);
+guint gxdp_open_uri_override_properties (GObjectClass *klass, guint property_id_begin);
+
+
+/* D-Bus method call completion functions: */
+void gxdp_open_uri_complete_open_uri (
+ GXdpOpenURI *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *handle);
+
+void gxdp_open_uri_complete_open_file (
+ GXdpOpenURI *object,
+ GDBusMethodInvocation *invocation,
+ GUnixFDList *fd_list,
+ const gchar *handle);
+
+void gxdp_open_uri_complete_open_directory (
+ GXdpOpenURI *object,
+ GDBusMethodInvocation *invocation,
+ GUnixFDList *fd_list,
+ const gchar *handle);
+
+
+
+/* D-Bus method calls: */
+void gxdp_open_uri_call_open_uri (
+ GXdpOpenURI *proxy,
+ const gchar *arg_parent_window,
+ const gchar *arg_uri,
+ GVariant *arg_options,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gxdp_open_uri_call_open_uri_finish (
+ GXdpOpenURI *proxy,
+ gchar **out_handle,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gxdp_open_uri_call_open_uri_sync (
+ GXdpOpenURI *proxy,
+ const gchar *arg_parent_window,
+ const gchar *arg_uri,
+ GVariant *arg_options,
+ gchar **out_handle,
+ GCancellable *cancellable,
+ GError **error);
+
+void gxdp_open_uri_call_open_file (
+ GXdpOpenURI *proxy,
+ const gchar *arg_parent_window,
+ GVariant *arg_fd,
+ GVariant *arg_options,
+ GUnixFDList *fd_list,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gxdp_open_uri_call_open_file_finish (
+ GXdpOpenURI *proxy,
+ gchar **out_handle,
+ GUnixFDList **out_fd_list,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gxdp_open_uri_call_open_file_sync (
+ GXdpOpenURI *proxy,
+ const gchar *arg_parent_window,
+ GVariant *arg_fd,
+ GVariant *arg_options,
+ GUnixFDList *fd_list,
+ gchar **out_handle,
+ GUnixFDList **out_fd_list,
+ GCancellable *cancellable,
+ GError **error);
+
+void gxdp_open_uri_call_open_directory (
+ GXdpOpenURI *proxy,
+ const gchar *arg_parent_window,
+ GVariant *arg_fd,
+ GVariant *arg_options,
+ GUnixFDList *fd_list,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gxdp_open_uri_call_open_directory_finish (
+ GXdpOpenURI *proxy,
+ gchar **out_handle,
+ GUnixFDList **out_fd_list,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gxdp_open_uri_call_open_directory_sync (
+ GXdpOpenURI *proxy,
+ const gchar *arg_parent_window,
+ GVariant *arg_fd,
+ GVariant *arg_options,
+ GUnixFDList *fd_list,
+ gchar **out_handle,
+ GUnixFDList **out_fd_list,
+ GCancellable *cancellable,
+ GError **error);
+
+
+
+/* D-Bus property accessors: */
+guint gxdp_open_uri_get_version (GXdpOpenURI *object);
+void gxdp_open_uri_set_version (GXdpOpenURI *object, guint value);
+
+
+/* ---- */
+
+#define GXDP_TYPE_OPEN_URI_PROXY (gxdp_open_uri_proxy_get_type ())
+#define GXDP_OPEN_URI_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_OPEN_URI_PROXY, GXdpOpenURIProxy))
+#define GXDP_OPEN_URI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_OPEN_URI_PROXY, GXdpOpenURIProxyClass))
+#define GXDP_OPEN_URI_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_OPEN_URI_PROXY, GXdpOpenURIProxyClass))
+#define GXDP_IS_OPEN_URI_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_OPEN_URI_PROXY))
+#define GXDP_IS_OPEN_URI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_OPEN_URI_PROXY))
+
+typedef struct _GXdpOpenURIProxy GXdpOpenURIProxy;
+typedef struct _GXdpOpenURIProxyClass GXdpOpenURIProxyClass;
+typedef struct _GXdpOpenURIProxyPrivate GXdpOpenURIProxyPrivate;
+
+struct _GXdpOpenURIProxy
+{
+ /*< private >*/
+ GDBusProxy parent_instance;
+ GXdpOpenURIProxyPrivate *priv;
+};
+
+struct _GXdpOpenURIProxyClass
+{
+ GDBusProxyClass parent_class;
+};
+
+GType gxdp_open_uri_proxy_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpOpenURIProxy, g_object_unref)
+#endif
+
+void gxdp_open_uri_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpOpenURI *gxdp_open_uri_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpOpenURI *gxdp_open_uri_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+void gxdp_open_uri_proxy_new_for_bus (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpOpenURI *gxdp_open_uri_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpOpenURI *gxdp_open_uri_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+
+/* ---- */
+
+#define GXDP_TYPE_OPEN_URI_SKELETON (gxdp_open_uri_skeleton_get_type ())
+#define GXDP_OPEN_URI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_OPEN_URI_SKELETON, GXdpOpenURISkeleton))
+#define GXDP_OPEN_URI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_OPEN_URI_SKELETON, GXdpOpenURISkeletonClass))
+#define GXDP_OPEN_URI_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_OPEN_URI_SKELETON, GXdpOpenURISkeletonClass))
+#define GXDP_IS_OPEN_URI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_OPEN_URI_SKELETON))
+#define GXDP_IS_OPEN_URI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_OPEN_URI_SKELETON))
+
+typedef struct _GXdpOpenURISkeleton GXdpOpenURISkeleton;
+typedef struct _GXdpOpenURISkeletonClass GXdpOpenURISkeletonClass;
+typedef struct _GXdpOpenURISkeletonPrivate GXdpOpenURISkeletonPrivate;
+
+struct _GXdpOpenURISkeleton
+{
+ /*< private >*/
+ GDBusInterfaceSkeleton parent_instance;
+ GXdpOpenURISkeletonPrivate *priv;
+};
+
+struct _GXdpOpenURISkeletonClass
+{
+ GDBusInterfaceSkeletonClass parent_class;
+};
+
+GType gxdp_open_uri_skeleton_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpOpenURISkeleton, g_object_unref)
+#endif
+
+GXdpOpenURI *gxdp_open_uri_skeleton_new (void);
+
+
+/* ------------------------------------------------------------------------ */
+/* Declarations for org.freedesktop.portal.ProxyResolver */
+
+#define GXDP_TYPE_PROXY_RESOLVER (gxdp_proxy_resolver_get_type ())
+#define GXDP_PROXY_RESOLVER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_PROXY_RESOLVER, GXdpProxyResolver))
+#define GXDP_IS_PROXY_RESOLVER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_PROXY_RESOLVER))
+#define GXDP_PROXY_RESOLVER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GXDP_TYPE_PROXY_RESOLVER, GXdpProxyResolverIface))
+
+struct _GXdpProxyResolver;
+typedef struct _GXdpProxyResolver GXdpProxyResolver;
+typedef struct _GXdpProxyResolverIface GXdpProxyResolverIface;
+
+struct _GXdpProxyResolverIface
+{
+ GTypeInterface parent_iface;
+
+
+ gboolean (*handle_lookup) (
+ GXdpProxyResolver *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *arg_uri);
+
+ guint (*get_version) (GXdpProxyResolver *object);
+
+};
+
+GType gxdp_proxy_resolver_get_type (void) G_GNUC_CONST;
+
+GDBusInterfaceInfo *gxdp_proxy_resolver_interface_info (void);
+guint gxdp_proxy_resolver_override_properties (GObjectClass *klass, guint property_id_begin);
+
+
+/* D-Bus method call completion functions: */
+void gxdp_proxy_resolver_complete_lookup (
+ GXdpProxyResolver *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *const *proxies);
+
+
+
+/* D-Bus method calls: */
+void gxdp_proxy_resolver_call_lookup (
+ GXdpProxyResolver *proxy,
+ const gchar *arg_uri,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gxdp_proxy_resolver_call_lookup_finish (
+ GXdpProxyResolver *proxy,
+ gchar ***out_proxies,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gxdp_proxy_resolver_call_lookup_sync (
+ GXdpProxyResolver *proxy,
+ const gchar *arg_uri,
+ gchar ***out_proxies,
+ GCancellable *cancellable,
+ GError **error);
+
+
+
+/* D-Bus property accessors: */
+guint gxdp_proxy_resolver_get_version (GXdpProxyResolver *object);
+void gxdp_proxy_resolver_set_version (GXdpProxyResolver *object, guint value);
+
+
+/* ---- */
+
+#define GXDP_TYPE_PROXY_RESOLVER_PROXY (gxdp_proxy_resolver_proxy_get_type ())
+#define GXDP_PROXY_RESOLVER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_PROXY_RESOLVER_PROXY, GXdpProxyResolverProxy))
+#define GXDP_PROXY_RESOLVER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_PROXY_RESOLVER_PROXY, GXdpProxyResolverProxyClass))
+#define GXDP_PROXY_RESOLVER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_PROXY_RESOLVER_PROXY, GXdpProxyResolverProxyClass))
+#define GXDP_IS_PROXY_RESOLVER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_PROXY_RESOLVER_PROXY))
+#define GXDP_IS_PROXY_RESOLVER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_PROXY_RESOLVER_PROXY))
+
+typedef struct _GXdpProxyResolverProxy GXdpProxyResolverProxy;
+typedef struct _GXdpProxyResolverProxyClass GXdpProxyResolverProxyClass;
+typedef struct _GXdpProxyResolverProxyPrivate GXdpProxyResolverProxyPrivate;
+
+struct _GXdpProxyResolverProxy
+{
+ /*< private >*/
+ GDBusProxy parent_instance;
+ GXdpProxyResolverProxyPrivate *priv;
+};
+
+struct _GXdpProxyResolverProxyClass
+{
+ GDBusProxyClass parent_class;
+};
+
+GType gxdp_proxy_resolver_proxy_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpProxyResolverProxy, g_object_unref)
+#endif
+
+void gxdp_proxy_resolver_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpProxyResolver *gxdp_proxy_resolver_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpProxyResolver *gxdp_proxy_resolver_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+void gxdp_proxy_resolver_proxy_new_for_bus (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpProxyResolver *gxdp_proxy_resolver_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpProxyResolver *gxdp_proxy_resolver_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+
+/* ---- */
+
+#define GXDP_TYPE_PROXY_RESOLVER_SKELETON (gxdp_proxy_resolver_skeleton_get_type ())
+#define GXDP_PROXY_RESOLVER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_PROXY_RESOLVER_SKELETON, GXdpProxyResolverSkeleton))
+#define GXDP_PROXY_RESOLVER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_PROXY_RESOLVER_SKELETON, GXdpProxyResolverSkeletonClass))
+#define GXDP_PROXY_RESOLVER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_PROXY_RESOLVER_SKELETON, GXdpProxyResolverSkeletonClass))
+#define GXDP_IS_PROXY_RESOLVER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_PROXY_RESOLVER_SKELETON))
+#define GXDP_IS_PROXY_RESOLVER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_PROXY_RESOLVER_SKELETON))
+
+typedef struct _GXdpProxyResolverSkeleton GXdpProxyResolverSkeleton;
+typedef struct _GXdpProxyResolverSkeletonClass GXdpProxyResolverSkeletonClass;
+typedef struct _GXdpProxyResolverSkeletonPrivate GXdpProxyResolverSkeletonPrivate;
+
+struct _GXdpProxyResolverSkeleton
+{
+ /*< private >*/
+ GDBusInterfaceSkeleton parent_instance;
+ GXdpProxyResolverSkeletonPrivate *priv;
+};
+
+struct _GXdpProxyResolverSkeletonClass
+{
+ GDBusInterfaceSkeletonClass parent_class;
+};
+
+GType gxdp_proxy_resolver_skeleton_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpProxyResolverSkeleton, g_object_unref)
+#endif
+
+GXdpProxyResolver *gxdp_proxy_resolver_skeleton_new (void);
+
+
+/* ------------------------------------------------------------------------ */
+/* Declarations for org.freedesktop.portal.Trash */
+
+#define GXDP_TYPE_TRASH (gxdp_trash_get_type ())
+#define GXDP_TRASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_TRASH, GXdpTrash))
+#define GXDP_IS_TRASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_TRASH))
+#define GXDP_TRASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GXDP_TYPE_TRASH, GXdpTrashIface))
+
+struct _GXdpTrash;
+typedef struct _GXdpTrash GXdpTrash;
+typedef struct _GXdpTrashIface GXdpTrashIface;
+
+struct _GXdpTrashIface
+{
+ GTypeInterface parent_iface;
+
+
+ gboolean (*handle_trash_file) (
+ GXdpTrash *object,
+ GDBusMethodInvocation *invocation,
+ GUnixFDList *fd_list,
+ GVariant *arg_fd);
+
+ guint (*get_version) (GXdpTrash *object);
+
+};
+
+GType gxdp_trash_get_type (void) G_GNUC_CONST;
+
+GDBusInterfaceInfo *gxdp_trash_interface_info (void);
+guint gxdp_trash_override_properties (GObjectClass *klass, guint property_id_begin);
+
+
+/* D-Bus method call completion functions: */
+void gxdp_trash_complete_trash_file (
+ GXdpTrash *object,
+ GDBusMethodInvocation *invocation,
+ GUnixFDList *fd_list,
+ guint result);
+
+
+
+/* D-Bus method calls: */
+void gxdp_trash_call_trash_file (
+ GXdpTrash *proxy,
+ GVariant *arg_fd,
+ GUnixFDList *fd_list,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gxdp_trash_call_trash_file_finish (
+ GXdpTrash *proxy,
+ guint *out_result,
+ GUnixFDList **out_fd_list,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gxdp_trash_call_trash_file_sync (
+ GXdpTrash *proxy,
+ GVariant *arg_fd,
+ GUnixFDList *fd_list,
+ guint *out_result,
+ GUnixFDList **out_fd_list,
+ GCancellable *cancellable,
+ GError **error);
+
+
+
+/* D-Bus property accessors: */
+guint gxdp_trash_get_version (GXdpTrash *object);
+void gxdp_trash_set_version (GXdpTrash *object, guint value);
+
+
+/* ---- */
+
+#define GXDP_TYPE_TRASH_PROXY (gxdp_trash_proxy_get_type ())
+#define GXDP_TRASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_TRASH_PROXY, GXdpTrashProxy))
+#define GXDP_TRASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_TRASH_PROXY, GXdpTrashProxyClass))
+#define GXDP_TRASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_TRASH_PROXY, GXdpTrashProxyClass))
+#define GXDP_IS_TRASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_TRASH_PROXY))
+#define GXDP_IS_TRASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_TRASH_PROXY))
+
+typedef struct _GXdpTrashProxy GXdpTrashProxy;
+typedef struct _GXdpTrashProxyClass GXdpTrashProxyClass;
+typedef struct _GXdpTrashProxyPrivate GXdpTrashProxyPrivate;
+
+struct _GXdpTrashProxy
+{
+ /*< private >*/
+ GDBusProxy parent_instance;
+ GXdpTrashProxyPrivate *priv;
+};
+
+struct _GXdpTrashProxyClass
+{
+ GDBusProxyClass parent_class;
+};
+
+GType gxdp_trash_proxy_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpTrashProxy, g_object_unref)
+#endif
+
+void gxdp_trash_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpTrash *gxdp_trash_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpTrash *gxdp_trash_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+void gxdp_trash_proxy_new_for_bus (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GXdpTrash *gxdp_trash_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error);
+GXdpTrash *gxdp_trash_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+
+/* ---- */
+
+#define GXDP_TYPE_TRASH_SKELETON (gxdp_trash_skeleton_get_type ())
+#define GXDP_TRASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GXDP_TYPE_TRASH_SKELETON, GXdpTrashSkeleton))
+#define GXDP_TRASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GXDP_TYPE_TRASH_SKELETON, GXdpTrashSkeletonClass))
+#define GXDP_TRASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GXDP_TYPE_TRASH_SKELETON, GXdpTrashSkeletonClass))
+#define GXDP_IS_TRASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GXDP_TYPE_TRASH_SKELETON))
+#define GXDP_IS_TRASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GXDP_TYPE_TRASH_SKELETON))
+
+typedef struct _GXdpTrashSkeleton GXdpTrashSkeleton;
+typedef struct _GXdpTrashSkeletonClass GXdpTrashSkeletonClass;
+typedef struct _GXdpTrashSkeletonPrivate GXdpTrashSkeletonPrivate;
+
+struct _GXdpTrashSkeleton
+{
+ /*< private >*/
+ GDBusInterfaceSkeleton parent_instance;
+ GXdpTrashSkeletonPrivate *priv;
+};
+
+struct _GXdpTrashSkeletonClass
+{
+ GDBusInterfaceSkeletonClass parent_class;
+};
+
+GType gxdp_trash_skeleton_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GXdpTrashSkeleton, g_object_unref)
+#endif
+
+GXdpTrash *gxdp_trash_skeleton_new (void);
+
+
+G_END_DECLS
+
+#endif /* __XDP_DBUS_H__ */
diff --git a/glib/gatomic.h b/glib/gatomic.h
index 8b2b880..7bb4443 100644
--- a/glib/gatomic.h
+++ b/glib/gatomic.h
@@ -86,7 +86,13 @@ G_END_DECLS
#if defined(G_ATOMIC_LOCK_FREE) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
/* We prefer the new C11-style atomic extension of GCC if available */
-#if defined(__ATOMIC_SEQ_CST)
+/* OHOS_GLIB_COMPATIBLE
+ * ohos.glib.compatible.001: glib 2.62.5 update 2.68.1 Incompatible with gstreamer 1.16.2
+ * static volatile gsize _init_once = 0; // Conflicts with volatile,
+ * if (g_once_init_enter (&_init_once))
+ * add "&& !defined(__clang__)"
+ */
+#if defined(__ATOMIC_SEQ_CST) && !defined(__clang__)
#define g_atomic_int_get(atomic) \
(G_GNUC_EXTENSION ({ \
diff --git a/glib/ggettext.c b/glib/ggettext.c
index 303b9b9..4d4cb25 100644
--- a/glib/ggettext.c
+++ b/glib/ggettext.c
@@ -40,7 +40,12 @@
#include <string.h>
#include <locale.h>
+#ifndef OHOS_OPT_COMPAT
+/* ohos.opt.compat.001:
+ * Remove dependency to gettext
+ */
#include <libintl.h>
+#endif
#ifdef G_OS_WIN32
diff --git a/glib/gi18n-lib.h b/glib/gi18n-lib.h
index 74e50a3..b6cc3d8 100644
--- a/glib/gi18n-lib.h
+++ b/glib/gi18n-lib.h
@@ -20,7 +20,12 @@
#include <glib.h>
+#ifndef OHOS_OPT_COMPAT
+/* ohos.opt.compat.001:
+ * Remove dependency to gettext
+ */
#include <libintl.h>
+#endif
#include <string.h>
#ifndef GETTEXT_PACKAGE
diff --git a/glib/gi18n.h b/glib/gi18n.h
index 5f996d2..a3e11c4 100644
--- a/glib/gi18n.h
+++ b/glib/gi18n.h
@@ -20,7 +20,12 @@
#include <glib.h>
+#ifndef OHOS_OPT_COMPAT
+/* ohos.opt.compat.001:
+ * Remove dependency to gettext
+ */
#include <libintl.h>
+#endif
#include <string.h>
#define _(String) gettext (String)
diff --git a/glib/glibconfig.h b/glib/glibconfig.h
new file mode 100644
index 0000000..4189f00
--- /dev/null
+++ b/glib/glibconfig.h
@@ -0,0 +1,294 @@
+/* glibconfig.h
+ *
+ * This is a generated file. Please modify 'glibconfig.h.in'
+ */
+
+#ifndef __GLIBCONFIG_H__
+#define __GLIBCONFIG_H__
+
+#include <glib/gmacros.h>
+
+#include <limits.h>
+#include <float.h>
+#define GLIB_HAVE_ALLOCA_H
+
+/* Specifies that GLib's g_print*() functions wrap the
+ * system printf functions. This is useful to know, for example,
+ * when using glibc's register_printf_function().
+ */
+#undef GLIB_USING_SYSTEM_PRINTF
+
+/* #undef GLIB_STATIC_COMPILATION */
+/* #undef GOBJECT_STATIC_COMPILATION */
+/* #undef G_INTL_STATIC_COMPILATION */
+/* #undef FFI_STATIC_BUILD */
+
+G_BEGIN_DECLS
+
+#define G_MINFLOAT FLT_MIN
+#define G_MAXFLOAT FLT_MAX
+#define G_MINDOUBLE DBL_MIN
+#define G_MAXDOUBLE DBL_MAX
+#define G_MINSHORT SHRT_MIN
+#define G_MAXSHORT SHRT_MAX
+#define G_MAXUSHORT USHRT_MAX
+#define G_MININT INT_MIN
+#define G_MAXINT INT_MAX
+#define G_MAXUINT UINT_MAX
+#define G_MINLONG LONG_MIN
+#define G_MAXLONG LONG_MAX
+#define G_MAXULONG ULONG_MAX
+
+typedef signed char gint8;
+typedef unsigned char guint8;
+
+typedef signed short gint16;
+typedef unsigned short guint16;
+
+#define G_GINT16_MODIFIER "h"
+#define G_GINT16_FORMAT "hi"
+#define G_GUINT16_FORMAT "hu"
+
+
+typedef signed int gint32;
+typedef unsigned int guint32;
+
+#define G_GINT32_MODIFIER ""
+#define G_GINT32_FORMAT "i"
+#define G_GUINT32_FORMAT "u"
+
+
+#define G_HAVE_GINT64 1 /* deprecated, always true */
+
+#ifdef __LP64__
+
+typedef signed long gint64;
+typedef unsigned long guint64;
+
+#define G_GINT64_CONSTANT(val) (val##L)
+#define G_GUINT64_CONSTANT(val) (val##UL)
+
+#define G_GINT64_MODIFIER "l"
+#define G_GINT64_FORMAT "li"
+#define G_GUINT64_FORMAT "lu"
+
+
+#define GLIB_SIZEOF_VOID_P 8
+#define GLIB_SIZEOF_LONG 8
+#define GLIB_SIZEOF_SIZE_T 8
+#define GLIB_SIZEOF_SSIZE_T 8
+
+typedef signed long gssize;
+typedef unsigned long gsize;
+#define G_GSIZE_MODIFIER "l"
+#define G_GSSIZE_MODIFIER "l"
+#define G_GSIZE_FORMAT "lu"
+#define G_GSSIZE_FORMAT "li"
+
+#define G_MAXSIZE G_MAXULONG
+#define G_MINSSIZE G_MINLONG
+#define G_MAXSSIZE G_MAXLONG
+
+typedef gint64 goffset;
+#define G_MINOFFSET G_MININT64
+#define G_MAXOFFSET G_MAXINT64
+
+#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
+#define G_GOFFSET_FORMAT G_GINT64_FORMAT
+#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
+
+#define G_POLLFD_FORMAT "%d"
+
+#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
+#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
+
+#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
+#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
+
+typedef signed long gintptr;
+typedef unsigned long guintptr;
+
+#define G_GINTPTR_MODIFIER "l"
+#define G_GINTPTR_FORMAT "li"
+#define G_GUINTPTR_FORMAT "lu"
+
+#else
+
+G_GNUC_EXTENSION typedef signed long long gint64;
+G_GNUC_EXTENSION typedef unsigned long long guint64;
+
+#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
+#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
+
+#define G_GINT64_MODIFIER "ll"
+#define G_GINT64_FORMAT "lli"
+#define G_GUINT64_FORMAT "llu"
+
+
+#define GLIB_SIZEOF_VOID_P 4
+#define GLIB_SIZEOF_LONG 4
+#define GLIB_SIZEOF_SIZE_T 4
+#define GLIB_SIZEOF_SSIZE_T 4
+
+typedef signed int gssize;
+typedef unsigned int gsize;
+#define G_GSIZE_MODIFIER ""
+#define G_GSSIZE_MODIFIER ""
+#define G_GSIZE_FORMAT "u"
+#define G_GSSIZE_FORMAT "i"
+
+#define G_MAXSIZE G_MAXUINT
+#define G_MINSSIZE G_MININT
+#define G_MAXSSIZE G_MAXINT
+
+typedef gint64 goffset;
+#define G_MINOFFSET G_MININT64
+#define G_MAXOFFSET G_MAXINT64
+
+#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
+#define G_GOFFSET_FORMAT G_GINT64_FORMAT
+#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
+
+#define G_POLLFD_FORMAT "%d"
+
+#define GPOINTER_TO_INT(p) ((gint) (gint) (p))
+#define GPOINTER_TO_UINT(p) ((guint) (guint) (p))
+
+#define GINT_TO_POINTER(i) ((gpointer) (gint) (i))
+#define GUINT_TO_POINTER(u) ((gpointer) (guint) (u))
+
+typedef signed int gintptr;
+typedef unsigned int guintptr;
+
+#define G_GINTPTR_MODIFIER ""
+#define G_GINTPTR_FORMAT "i"
+#define G_GUINTPTR_FORMAT "u"
+#endif
+
+
+#define GLIB_MAJOR_VERSION 2
+#define GLIB_MINOR_VERSION 72
+#define GLIB_MICRO_VERSION 2
+
+#define G_OS_UNIX
+
+#define G_VA_COPY va_copy
+#define G_VA_COPY_AS_ARRAY 1
+
+
+#ifndef __cplusplus
+# define G_HAVE_ISO_VARARGS 1
+#endif
+
+#ifdef __cplusplus
+# define G_HAVE_ISO_VARARGS 1
+#endif
+
+/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
+ * is passed ISO vararg support is turned off, and there is no work
+ * around to turn it on, so we unconditionally turn it off.
+ */
+#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
+# undef G_HAVE_ISO_VARARGS
+#endif
+
+#define G_HAVE_GROWING_STACK 0
+#define G_HAVE_GNUC_VISIBILITY 1
+
+#ifndef _MSC_VER
+# define G_HAVE_GNUC_VARARGS 1
+#endif
+
+#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
+#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+#define G_GNUC_INTERNAL __hidden
+#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
+#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
+#else
+#define G_GNUC_INTERNAL
+#endif
+
+#define G_THREADS_ENABLED
+#define G_THREADS_IMPL_POSIX
+
+#define G_ATOMIC_LOCK_FREE
+
+#define GINT16_TO_LE(val) ((gint16) (val))
+#define GUINT16_TO_LE(val) ((guint16) (val))
+#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
+#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
+
+#define GINT32_TO_LE(val) ((gint32) (val))
+#define GUINT32_TO_LE(val) ((guint32) (val))
+#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
+#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
+
+#define GINT64_TO_LE(val) ((gint64) (val))
+#define GUINT64_TO_LE(val) ((guint64) (val))
+#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
+#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
+
+#ifdef __LP64__
+
+#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
+#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
+#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
+#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jaygome/third_party_glib.git
[email protected]:jaygome/third_party_glib.git
jaygome
third_party_glib
third_party_glib
master

搜索帮助