代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_glib 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
+ 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))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。