libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Typedefs | Functions
binder.h File Reference

Data structures and functions for interacting with the Android Binder IPC interface used in vi services. More...

#include <libtransistor/types.h>
#include <libtransistor/display/parcel.h>
Include dependency graph for binder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  binder_t
 Represents a remote interface. More...
 
struct  flat_binder_object_t
 Binder object as included in a Parcel. More...
 

Typedefs

typedef struct binder_t binder_t
 

Functions

result_t binder_adjust_refcount (binder_t *binder, int32_t addval, int32_t type)
 Adjusts the binder's reference count. More...
 
result_t binder_transact_parcel (binder_t *binder, uint32_t transaction, uint32_t flags, parcel_t *in, parcel_t *out)
 Perform a transaction on the given binder. More...
 
result_t binder_get_native_handle (binder_t *binder, uint32_t id, revent_h *out)
 Gets a native handle from a binder.
 

Detailed Description

Data structures and functions for interacting with the Android Binder IPC interface used in vi services.

Function Documentation

result_t binder_adjust_refcount ( binder_t binder,
int32_t  addval,
int32_t  type 
)

Adjusts the binder's reference count.

Parameters
binderBinder object to adjust reference count for
addvalDescription
typeDescription
result_t binder_transact_parcel ( binder_t binder,
uint32_t  transaction,
uint32_t  flags,
parcel_t in,
parcel_t out 
)

Perform a transaction on the given binder.

Parameters
binderBinder object to transact with
transactionTransaction ID
flagsTransaction flags
inParcel to read request parameters from
outParcel to write response values to