[gbinder] Hide internal symbols. JB#42956
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -14,8 +14,8 @@
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -42,42 +42,51 @@ gbinder_buffer_new(
|
||||
GBinderDriver* driver,
|
||||
void* data,
|
||||
gsize size,
|
||||
void** objects);
|
||||
void** objects)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderBuffer*
|
||||
gbinder_buffer_new_with_parent(
|
||||
GBinderBuffer* parent,
|
||||
void* data,
|
||||
gsize size);
|
||||
gsize size)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderDriver*
|
||||
gbinder_buffer_driver(
|
||||
GBinderBuffer* buf);
|
||||
GBinderBuffer* buf)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderBufferContents*
|
||||
gbinder_buffer_contents(
|
||||
GBinderBuffer* buf);
|
||||
GBinderBuffer* buf)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gconstpointer
|
||||
gbinder_buffer_data(
|
||||
GBinderBuffer* buf,
|
||||
gsize* size);
|
||||
gsize* size)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
const GBinderIo*
|
||||
gbinder_buffer_io(
|
||||
GBinderBuffer* buf);
|
||||
GBinderBuffer* buf)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void**
|
||||
gbinder_buffer_objects(
|
||||
GBinderBuffer* buffer);
|
||||
GBinderBuffer* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderBufferContents*
|
||||
gbinder_buffer_contents_ref(
|
||||
GBinderBufferContents* contents);
|
||||
GBinderBufferContents* contents)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_buffer_contents_unref(
|
||||
GBinderBufferContents* contents);
|
||||
GBinderBufferContents* contents)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_BUFFER_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -37,17 +37,20 @@
|
||||
|
||||
void
|
||||
gbinder_cleanup_free(
|
||||
GBinderCleanup* cleanup);
|
||||
GBinderCleanup* cleanup)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_cleanup_reset(
|
||||
GBinderCleanup* cleanup);
|
||||
GBinderCleanup* cleanup)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderCleanup*
|
||||
gbinder_cleanup_add(
|
||||
GBinderCleanup* cleanup,
|
||||
GDestroyNotify destroy,
|
||||
gpointer pointer);
|
||||
gpointer pointer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_CLEANUP_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Jolla Ltd.
|
||||
* Copyright (C) 2018-2019 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -14,8 +14,8 @@
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -40,87 +40,105 @@ struct pollfd;
|
||||
GBinderDriver*
|
||||
gbinder_driver_new(
|
||||
const char* dev,
|
||||
const GBinderRpcProtocol* protocol);
|
||||
const GBinderRpcProtocol* protocol)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderDriver*
|
||||
gbinder_driver_ref(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_driver_unref(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_driver_fd(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_driver_poll(
|
||||
GBinderDriver* driver,
|
||||
struct pollfd* pollfd);
|
||||
struct pollfd* pollfd)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
const char*
|
||||
gbinder_driver_dev(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
const GBinderIo*
|
||||
gbinder_driver_io(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_request_death_notification(
|
||||
GBinderDriver* driver,
|
||||
GBinderRemoteObject* obj);
|
||||
GBinderRemoteObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_clear_death_notification(
|
||||
GBinderDriver* driver,
|
||||
GBinderRemoteObject* obj);
|
||||
GBinderRemoteObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_increfs(
|
||||
GBinderDriver* driver,
|
||||
guint32 handle);
|
||||
guint32 handle)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_decrefs(
|
||||
GBinderDriver* driver,
|
||||
guint32 handle);
|
||||
guint32 handle)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_acquire(
|
||||
GBinderDriver* driver,
|
||||
guint32 handle);
|
||||
guint32 handle)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_release(
|
||||
GBinderDriver* driver,
|
||||
guint32 handle);
|
||||
guint32 handle)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_driver_close_fds(
|
||||
GBinderDriver* self,
|
||||
void** objects,
|
||||
const void* end);
|
||||
const void* end)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_driver_free_buffer(
|
||||
GBinderDriver* driver,
|
||||
void* buffer);
|
||||
void* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_enter_looper(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_driver_exit_looper(
|
||||
GBinderDriver* driver);
|
||||
GBinderDriver* driver)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_driver_read(
|
||||
GBinderDriver* driver,
|
||||
GBinderObjectRegistry* reg,
|
||||
GBinderHandler* handler);
|
||||
GBinderHandler* handler)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_driver_transact(
|
||||
@@ -129,18 +147,21 @@ gbinder_driver_transact(
|
||||
guint32 handle,
|
||||
guint32 code,
|
||||
GBinderLocalRequest* request,
|
||||
GBinderRemoteReply* reply);
|
||||
GBinderRemoteReply* reply)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_driver_ping(
|
||||
GBinderDriver* driver,
|
||||
GBinderObjectRegistry* reg,
|
||||
guint32 handle);
|
||||
guint32 handle)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderLocalRequest*
|
||||
gbinder_driver_local_request_new(
|
||||
GBinderDriver* self,
|
||||
const char* iface);
|
||||
const char* iface)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_DRIVER_H */
|
||||
|
||||
|
||||
@@ -33,64 +33,65 @@
|
||||
#ifndef GBINDER_EVENTLOOP_PRIVATE_H
|
||||
#define GBINDER_EVENTLOOP_PRIVATE_H
|
||||
|
||||
#include "gbinder_types_p.h"
|
||||
#include "gbinder_eventloop.h"
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderEventLoopTimeout*
|
||||
gbinder_timeout_add(
|
||||
guint millis,
|
||||
GSourceFunc func,
|
||||
gpointer data);
|
||||
gpointer data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderEventLoopTimeout*
|
||||
gbinder_idle_add(
|
||||
GSourceFunc func,
|
||||
gpointer data);
|
||||
gpointer data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_timeout_remove(
|
||||
GBinderEventLoopTimeout* timeout);
|
||||
GBinderEventLoopTimeout* timeout)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderEventLoopCallback*
|
||||
gbinder_idle_callback_new(
|
||||
GBinderEventLoopCallbackFunc func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
GDestroyNotify destroy)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderEventLoopCallback*
|
||||
gbinder_idle_callback_schedule_new(
|
||||
GBinderEventLoopCallbackFunc func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
GDestroyNotify destroy)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderEventLoopCallback*
|
||||
gbinder_idle_callback_ref(
|
||||
GBinderEventLoopCallback* cb);
|
||||
GBinderEventLoopCallback* cb)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_idle_callback_unref(
|
||||
GBinderEventLoopCallback* cb);
|
||||
GBinderEventLoopCallback* cb)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_idle_callback_schedule(
|
||||
GBinderEventLoopCallback* cb);
|
||||
GBinderEventLoopCallback* cb)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_idle_callback_cancel(
|
||||
GBinderEventLoopCallback* cb);
|
||||
GBinderEventLoopCallback* cb)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_idle_callback_destroy(
|
||||
GBinderEventLoopCallback* cb);
|
||||
GBinderEventLoopCallback* cb)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_EVENTLOOP_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -13,9 +13,9 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of Jolla Ltd nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
|
||||
@@ -181,8 +181,8 @@ struct gbinder_io {
|
||||
int (*write_read)(int fd, GBinderIoBuf* write, GBinderIoBuf* read);
|
||||
};
|
||||
|
||||
extern const GBinderIo gbinder_io_32;
|
||||
extern const GBinderIo gbinder_io_64;
|
||||
extern const GBinderIo gbinder_io_32 GBINDER_INTERNAL;
|
||||
extern const GBinderIo gbinder_io_64 GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_IO_H */
|
||||
|
||||
|
||||
@@ -67,69 +67,68 @@ void
|
||||
int status,
|
||||
void* user_data);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderIpc*
|
||||
gbinder_ipc_new(
|
||||
const char* dev,
|
||||
const GBinderRpcProtocol* protocol);
|
||||
const char* dev,
|
||||
const GBinderRpcProtocol* protocol)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderIpc*
|
||||
gbinder_ipc_ref(
|
||||
GBinderIpc* ipc);
|
||||
GBinderIpc* ipc)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_unref(
|
||||
GBinderIpc* ipc);
|
||||
GBinderIpc* ipc)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_looper_check(
|
||||
GBinderIpc* ipc);
|
||||
GBinderIpc* ipc)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderObjectRegistry*
|
||||
gbinder_ipc_object_registry(
|
||||
GBinderIpc* ipc);
|
||||
GBinderIpc* ipc)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_register_local_object(
|
||||
GBinderIpc* ipc,
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderRemoteObject*
|
||||
gbinder_ipc_get_remote_object(
|
||||
GBinderIpc* ipc,
|
||||
guint32 handle,
|
||||
gboolean maybe_dead);
|
||||
gboolean maybe_dead)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_invalidate_remote_handle(
|
||||
GBinderIpc* ipc,
|
||||
guint32 handle);
|
||||
guint32 handle)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
GBinderRemoteReply*
|
||||
gbinder_ipc_transact_sync_reply(
|
||||
GBinderIpc* ipc,
|
||||
guint32 handle,
|
||||
guint32 code,
|
||||
GBinderLocalRequest* req,
|
||||
int* status);
|
||||
int* status)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
int
|
||||
gbinder_ipc_transact_sync_oneway(
|
||||
GBinderIpc* ipc,
|
||||
guint32 handle,
|
||||
guint32 code,
|
||||
GBinderLocalRequest* req);
|
||||
GBinderLocalRequest* req)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gulong
|
||||
gbinder_ipc_transact(
|
||||
GBinderIpc* ipc,
|
||||
@@ -139,43 +138,44 @@ gbinder_ipc_transact(
|
||||
GBinderLocalRequest* req,
|
||||
GBinderIpcReplyFunc func,
|
||||
GDestroyNotify destroy,
|
||||
void* user_data);
|
||||
void* user_data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
gulong
|
||||
gbinder_ipc_transact_custom(
|
||||
GBinderIpc* ipc,
|
||||
GBinderIpcTxFunc exec,
|
||||
GBinderIpcTxFunc done,
|
||||
GDestroyNotify destroy,
|
||||
void* user_data);
|
||||
void* user_data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_cancel(
|
||||
GBinderIpc* ipc,
|
||||
gulong id);
|
||||
gulong id)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
/* Internal for GBinderLocalObject */
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_local_object_disposed(
|
||||
GBinderIpc* self,
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
/* Internal for GBinderRemoteObject */
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gbinder_ipc_remote_object_disposed(
|
||||
GBinderIpc* self,
|
||||
GBinderRemoteObject* obj);
|
||||
GBinderRemoteObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
/* Declared for unit tests */
|
||||
G_GNUC_INTERNAL
|
||||
__attribute__((destructor))
|
||||
void
|
||||
gbinder_ipc_exit(
|
||||
void);
|
||||
void)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_IPC_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Jolla Ltd.
|
||||
* Copyright (C) 2018-2019 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -79,7 +79,7 @@ typedef struct gbinder_local_object_class {
|
||||
/* Need to add some placeholders if this class becomes public */
|
||||
} GBinderLocalObjectClass;
|
||||
|
||||
GType gbinder_local_object_get_type(void);
|
||||
GType gbinder_local_object_get_type(void) GBINDER_INTERNAL;
|
||||
#define GBINDER_TYPE_LOCAL_OBJECT (gbinder_local_object_get_type())
|
||||
#define GBINDER_LOCAL_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
|
||||
GBINDER_TYPE_LOCAL_OBJECT, GBinderLocalObject))
|
||||
@@ -91,24 +91,28 @@ gulong
|
||||
gbinder_local_object_add_weak_refs_changed_handler(
|
||||
GBinderLocalObject* obj,
|
||||
GBinderLocalObjectFunc func,
|
||||
void* user_data);
|
||||
void* user_data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gulong
|
||||
gbinder_local_object_add_strong_refs_changed_handler(
|
||||
GBinderLocalObject* obj,
|
||||
GBinderLocalObjectFunc func,
|
||||
void* user_data);
|
||||
void* user_data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_local_object_remove_handler(
|
||||
GBinderLocalObject* obj,
|
||||
gulong id);
|
||||
gulong id)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBINDER_LOCAL_TRANSACTION_SUPPORT
|
||||
gbinder_local_object_can_handle_transaction(
|
||||
GBinderLocalObject* self,
|
||||
const char* iface,
|
||||
guint code);
|
||||
guint code)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderLocalReply*
|
||||
gbinder_local_object_handle_transaction(
|
||||
@@ -116,7 +120,8 @@ gbinder_local_object_handle_transaction(
|
||||
GBinderRemoteRequest* req,
|
||||
guint code,
|
||||
guint flags,
|
||||
int* status);
|
||||
int* status)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderLocalReply*
|
||||
gbinder_local_object_handle_looper_transaction(
|
||||
@@ -124,23 +129,28 @@ gbinder_local_object_handle_looper_transaction(
|
||||
GBinderRemoteRequest* req,
|
||||
guint code,
|
||||
guint flags,
|
||||
int* status);
|
||||
int* status)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_local_object_handle_increfs(
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_local_object_handle_decrefs(
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_local_object_handle_acquire(
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_local_object_handle_release(
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_LOCAL_OBJECT_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -14,8 +14,8 @@
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -39,15 +39,18 @@
|
||||
|
||||
GBinderLocalReply*
|
||||
gbinder_local_reply_new(
|
||||
const GBinderIo* io);
|
||||
const GBinderIo* io)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderOutputData*
|
||||
gbinder_local_reply_data(
|
||||
GBinderLocalReply* reply);
|
||||
GBinderLocalReply* reply)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderLocalReply*
|
||||
gbinder_local_reply_new_from_data(
|
||||
GBinderBuffer* buffer);
|
||||
GBinderBuffer* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_LOCAL_REPLY_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -14,8 +14,8 @@
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -40,15 +40,18 @@
|
||||
GBinderLocalRequest*
|
||||
gbinder_local_request_new(
|
||||
const GBinderIo* io,
|
||||
GBytes* init);
|
||||
GBytes* init)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderOutputData*
|
||||
gbinder_local_request_data(
|
||||
GBinderLocalRequest* req);
|
||||
GBinderLocalRequest* req)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderLocalRequest*
|
||||
gbinder_local_request_new_from_data(
|
||||
GBinderBuffer* buffer);
|
||||
GBinderBuffer* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_LOCAL_REQUEST_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -13,9 +13,9 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of Jolla Ltd nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -33,17 +33,17 @@
|
||||
#ifndef GBINDER_LOG_H
|
||||
#define GBINDER_LOG_H
|
||||
|
||||
#include "gbinder_types.h"
|
||||
#include "gbinder_types_p.h"
|
||||
|
||||
#define GLOG_MODULE_NAME GBINDER_LOG_MODULE
|
||||
#include <gutil_log.h>
|
||||
|
||||
/* Declared for unit tests */
|
||||
G_GNUC_INTERNAL
|
||||
__attribute__((constructor))
|
||||
void
|
||||
gbinder_log_init(
|
||||
void);
|
||||
void)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_LOG_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -13,9 +13,9 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of Jolla Ltd nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -13,9 +13,9 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of Jolla Ltd nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -13,9 +13,9 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of Jolla Ltd nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -48,7 +48,8 @@ gbinder_reader_init(
|
||||
GBinderReader* reader,
|
||||
GBinderReaderData* data,
|
||||
gsize offset,
|
||||
gsize len);
|
||||
gsize len)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_READER_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Jolla Ltd.
|
||||
* Copyright (C) 2018-2019 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -55,15 +55,18 @@ GBinderRemoteObject*
|
||||
gbinder_remote_object_new(
|
||||
GBinderIpc* ipc,
|
||||
guint32 handle,
|
||||
gboolean maybe_dead);
|
||||
gboolean maybe_dead)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_remote_object_reanimate(
|
||||
GBinderRemoteObject* obj);
|
||||
GBinderRemoteObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_remote_object_handle_death_notification(
|
||||
GBinderRemoteObject* obj);
|
||||
GBinderRemoteObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_REMOTE_OBJECT_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -39,16 +39,19 @@
|
||||
|
||||
GBinderRemoteReply*
|
||||
gbinder_remote_reply_new(
|
||||
GBinderObjectRegistry* reg);
|
||||
GBinderObjectRegistry* reg)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_remote_reply_set_data(
|
||||
GBinderRemoteReply* reply,
|
||||
GBinderBuffer* buffer);
|
||||
GBinderBuffer* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_remote_reply_is_empty(
|
||||
GBinderRemoteReply* reply);
|
||||
GBinderRemoteReply* reply)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_REMOTE_REPLY_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -46,13 +46,15 @@ gbinder_remote_request_new(
|
||||
GBinderObjectRegistry* reg,
|
||||
const GBinderRpcProtocol* protocol,
|
||||
pid_t pid,
|
||||
uid_t euid);
|
||||
uid_t euid)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_remote_request_set_data(
|
||||
GBinderRemoteRequest* request,
|
||||
guint txcode,
|
||||
GBinderBuffer* buffer);
|
||||
GBinderBuffer* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_REMOTE_REQUEST_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Jolla Ltd.
|
||||
* Copyright (C) 2018-2019 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -15,8 +15,8 @@
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -49,13 +49,14 @@ struct gbinder_rpc_protocol {
|
||||
char** iface);
|
||||
};
|
||||
|
||||
extern const GBinderRpcProtocol gbinder_rpc_protocol_binder;
|
||||
extern const GBinderRpcProtocol gbinder_rpc_protocol_hwbinder;
|
||||
extern const GBinderRpcProtocol gbinder_rpc_protocol_binder GBINDER_INTERNAL;
|
||||
extern const GBinderRpcProtocol gbinder_rpc_protocol_hwbinder GBINDER_INTERNAL;
|
||||
|
||||
/* Returns one of the above based on the device name */
|
||||
const GBinderRpcProtocol*
|
||||
gbinder_rpc_protocol_for_device(
|
||||
const char* dev);
|
||||
const char* dev)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_RPC_PROTOCOL_H */
|
||||
|
||||
|
||||
@@ -84,18 +84,20 @@ typedef struct gbinder_servicemanager_class {
|
||||
void (*unwatch)(GBinderServiceManager* self, const char* name);
|
||||
} GBinderServiceManagerClass;
|
||||
|
||||
GType gbinder_servicemanager_get_type(void);
|
||||
GType gbinder_servicemanager_get_type(void) GBINDER_INTERNAL;
|
||||
#define GBINDER_TYPE_SERVICEMANAGER (gbinder_servicemanager_get_type())
|
||||
|
||||
GBinderServiceManager*
|
||||
gbinder_servicemanager_new_with_type(
|
||||
GType type,
|
||||
const char* dev);
|
||||
const char* dev)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_servicemanager_service_registered(
|
||||
GBinderServiceManager* self,
|
||||
const char* name);
|
||||
const char* name)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_SERVICEMANAGER_PRIVATE_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "gbinder_types_p.h"
|
||||
|
||||
extern guint gbinder_servicepoll_interval_ms;
|
||||
extern guint gbinder_servicepoll_interval_ms GBINDER_INTERNAL;
|
||||
|
||||
typedef
|
||||
void
|
||||
@@ -47,35 +47,42 @@ void
|
||||
GBinderServicePoll*
|
||||
gbinder_servicepoll_new(
|
||||
GBinderServiceManager* manager,
|
||||
GBinderServicePoll** weakptr);
|
||||
GBinderServicePoll** weakptr)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderServicePoll*
|
||||
gbinder_servicepoll_ref(
|
||||
GBinderServicePoll* poll);
|
||||
GBinderServicePoll* poll)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_servicepoll_unref(
|
||||
GBinderServicePoll* poll);
|
||||
GBinderServicePoll* poll)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
GBinderServiceManager*
|
||||
gbinder_servicepoll_manager(
|
||||
GBinderServicePoll* poll);
|
||||
GBinderServicePoll* poll)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gboolean
|
||||
gbinder_servicepoll_is_known_name(
|
||||
GBinderServicePoll* poll,
|
||||
const char* name);
|
||||
const char* name)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
gulong
|
||||
gbinder_servicepoll_add_handler(
|
||||
GBinderServicePoll* poll,
|
||||
GBinderServicePollFunc func,
|
||||
void* user_data);
|
||||
void* user_data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_servicepoll_remove_handler(
|
||||
GBinderServicePoll* poll,
|
||||
gulong id);
|
||||
gulong id)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_SERVICEPOLL_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Contact: Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -13,9 +13,9 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of Jolla Ltd nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -38,29 +38,34 @@
|
||||
int
|
||||
gbinder_system_open(
|
||||
const char* path,
|
||||
int flags);
|
||||
int flags)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_system_close(
|
||||
int fd);
|
||||
int fd)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_system_ioctl(
|
||||
int fd,
|
||||
int request,
|
||||
void* data);
|
||||
void* data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void*
|
||||
gbinder_system_mmap(
|
||||
size_t length,
|
||||
int prot,
|
||||
int flags,
|
||||
int fd);
|
||||
int fd)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
int
|
||||
gbinder_system_munmap(
|
||||
void* addr,
|
||||
size_t length);
|
||||
size_t length)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_SYSTEM_H */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Jolla Ltd.
|
||||
* Copyright (C) 2018-2019 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -14,8 +14,8 @@
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -47,6 +47,7 @@ typedef struct gbinder_servicepoll GBinderServicePoll;
|
||||
typedef struct gbinder_ipc_looper_tx GBinderIpcLooperTx;
|
||||
|
||||
#define GBINDER_INLINE_FUNC static inline
|
||||
#define GBINDER_INTERNAL G_GNUC_INTERNAL
|
||||
|
||||
#define GBINDER_TRANSACTION(c2,c3,c4) GBINDER_FOURCC('_',c2,c3,c4)
|
||||
#define GBINDER_PING_TRANSACTION GBINDER_TRANSACTION('P','N','G')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Jolla Ltd.
|
||||
* Copyright (C) 2018 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2018-2020 Jolla Ltd.
|
||||
* Copyright (C) 2018-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* You may use this file under the terms of BSD license as follows:
|
||||
*
|
||||
@@ -14,8 +14,8 @@
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the names of the copyright holders nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
@@ -48,94 +48,111 @@ typedef struct gbinder_writer_data {
|
||||
void
|
||||
gbinder_writer_init(
|
||||
GBinderWriter* writer,
|
||||
GBinderWriterData* data);
|
||||
GBinderWriterData* data)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_set_contents(
|
||||
GBinderWriterData* data,
|
||||
GBinderBuffer* buffer);
|
||||
GBinderBuffer* buffer)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_bool(
|
||||
GBinderWriterData* data,
|
||||
gboolean value);
|
||||
gboolean value)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_int32(
|
||||
GBinderWriterData* data,
|
||||
guint32 value);
|
||||
guint32 value)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_int64(
|
||||
GBinderWriterData* data,
|
||||
guint64 value);
|
||||
guint64 value)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_float(
|
||||
GBinderWriterData* data,
|
||||
gfloat value);
|
||||
gfloat value)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_double(
|
||||
GBinderWriterData* data,
|
||||
gdouble value);
|
||||
gdouble value)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_string8(
|
||||
GBinderWriterData* data,
|
||||
const char* str);
|
||||
const char* str)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_string8_len(
|
||||
GBinderWriterData* data,
|
||||
const char* str,
|
||||
gsize len);
|
||||
gsize len)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_string16(
|
||||
GBinderWriterData* data,
|
||||
const char* utf8);
|
||||
const char* utf8)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_string16_len(
|
||||
GBinderWriterData* data,
|
||||
const char* utf8,
|
||||
gssize num_bytes);
|
||||
gssize num_bytes)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
guint
|
||||
gbinder_writer_data_append_buffer_object(
|
||||
GBinderWriterData* data,
|
||||
const void* ptr,
|
||||
gsize size,
|
||||
const GBinderParent* parent);
|
||||
const GBinderParent* parent)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_hidl_vec(
|
||||
GBinderWriterData* data,
|
||||
const void* base,
|
||||
guint count,
|
||||
guint elemsize);
|
||||
guint elemsize)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_hidl_string(
|
||||
GBinderWriterData* data,
|
||||
const char* str);
|
||||
const char* str)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_hidl_string_vec(
|
||||
GBinderWriterData* data,
|
||||
const char* strv[],
|
||||
gssize count);
|
||||
gssize count)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_local_object(
|
||||
GBinderWriterData* data,
|
||||
GBinderLocalObject* obj);
|
||||
GBinderLocalObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
void
|
||||
gbinder_writer_data_append_remote_object(
|
||||
GBinderWriterData* data,
|
||||
GBinderRemoteObject* obj);
|
||||
GBinderRemoteObject* obj)
|
||||
GBINDER_INTERNAL;
|
||||
|
||||
#endif /* GBINDER_WRITER_PRIVATE_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user