Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
girffi.h File Reference
#include <ffi.h>
#include "girepository.h"

Go to the source code of this file.

Data Structures

struct  GIFunctionInvoker
 

Typedefs

typedef GIArgument GIFFIReturnValue
 

Functions

GI_AVAILABLE_IN_ALL ffi_type * gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer)
 
GI_AVAILABLE_IN_ALL ffi_type * gi_type_info_get_ffi_type (GITypeInfo *info)
 
GI_AVAILABLE_IN_ALL void gi_type_info_extract_ffi_return_value (GITypeInfo *return_info, GIFFIReturnValue *ffi_value, GIArgument *arg)
 
GI_AVAILABLE_IN_ALL void gi_type_tag_extract_ffi_return_value (GITypeTag return_tag, GType interface_type, GIFFIReturnValue *ffi_value, GIArgument *arg)
 
GI_AVAILABLE_IN_ALL gboolean gi_function_info_prep_invoker (GIFunctionInfo *info, GIFunctionInvoker *invoker, GError **error)
 
GI_AVAILABLE_IN_ALL gboolean gi_function_invoker_new_for_address (void *addr, GICallableInfo *info, GIFunctionInvoker *invoker, GError **error)
 
GI_AVAILABLE_IN_ALL void gi_function_invoker_clear (GIFunctionInvoker *invoker)
 
GI_AVAILABLE_IN_ALL ffi_closure * gi_callable_info_create_closure (GICallableInfo *callable_info, ffi_cif *cif, GIFFIClosureCallback callback, void *user_data)
 
GI_AVAILABLE_IN_ALL void ** gi_callable_info_get_closure_native_address (GICallableInfo *callable_info, ffi_closure *closure)
 
GI_AVAILABLE_IN_ALL void gi_callable_info_destroy_closure (GICallableInfo *callable_info, ffi_closure *closure)
 

Variables

G_BEGIN_DECLS typedef void(* GIFFIClosureCallback )(ffi_cif *cif, void *ret, void **args, void *user_data)
 

Typedef Documentation

◆ GIFFIReturnValue

GIFFIReturnValue:

The type of a return value from a callable invocation closure.

Since: 2.80

Definition at line 80 of file girffi.h.

Function Documentation

◆ gi_callable_info_create_closure()

GI_AVAILABLE_IN_ALL ffi_closure * gi_callable_info_create_closure ( GICallableInfo * callable_info,
ffi_cif * cif,
GIFFIClosureCallback callback,
void * user_data )

◆ gi_callable_info_destroy_closure()

GI_AVAILABLE_IN_ALL void gi_callable_info_destroy_closure ( GICallableInfo * callable_info,
ffi_closure * closure )

◆ gi_callable_info_get_closure_native_address()

GI_AVAILABLE_IN_ALL void ** gi_callable_info_get_closure_native_address ( GICallableInfo * callable_info,
ffi_closure * closure )

◆ gi_function_info_prep_invoker()

GI_AVAILABLE_IN_ALL gboolean gi_function_info_prep_invoker ( GIFunctionInfo * info,
GIFunctionInvoker * invoker,
GError ** error )

◆ gi_function_invoker_clear()

GI_AVAILABLE_IN_ALL void gi_function_invoker_clear ( GIFunctionInvoker * invoker)

◆ gi_function_invoker_new_for_address()

GI_AVAILABLE_IN_ALL gboolean gi_function_invoker_new_for_address ( void * addr,
GICallableInfo * info,
GIFunctionInvoker * invoker,
GError ** error )

◆ gi_type_info_extract_ffi_return_value()

GI_AVAILABLE_IN_ALL void gi_type_info_extract_ffi_return_value ( GITypeInfo * return_info,
GIFFIReturnValue * ffi_value,
GIArgument * arg )

◆ gi_type_info_get_ffi_type()

GI_AVAILABLE_IN_ALL ffi_type * gi_type_info_get_ffi_type ( GITypeInfo * info)

◆ gi_type_tag_extract_ffi_return_value()

GI_AVAILABLE_IN_ALL void gi_type_tag_extract_ffi_return_value ( GITypeTag return_tag,
GType interface_type,
GIFFIReturnValue * ffi_value,
GIArgument * arg )

◆ gi_type_tag_get_ffi_type()

GI_AVAILABLE_IN_ALL ffi_type * gi_type_tag_get_ffi_type ( GITypeTag type_tag,
gboolean is_pointer )

Variable Documentation

◆ GIFFIClosureCallback

G_BEGIN_DECLS typedef void(* GIFFIClosureCallback) (ffi_cif *cif, void *ret, void **args, void *user_data) ( ffi_cif * cif,
void * ret,
void ** args,
void * user_data )

GIFFIClosureCallback: @cif: the ffi_cif passed to [metho.nosp@m.d@GI.nosp@m.Repos.nosp@m.itor.nosp@m.y.Cal.nosp@m.labl.nosp@m.eInfo.nosp@m..cre.nosp@m.ate_c.nosp@m.losu.nosp@m.re] @ret: (out caller-allocates): a pointer to the memory used for the function’s return value @args: a vector of pointers to memory holding the arguments to the function @user_data: the user data passed to [metho.nosp@m.d@GI.nosp@m.Repos.nosp@m.itor.nosp@m.y.Cal.nosp@m.labl.nosp@m.eInfo.nosp@m..cre.nosp@m.ate_c.nosp@m.losu.nosp@m.re]

The function which will be called when a closure created with [metho.nosp@m.d@GI.nosp@m.Repos.nosp@m.itor.nosp@m.y.Cal.nosp@m.labl.nosp@m.eInfo.nosp@m..cre.nosp@m.ate_c.nosp@m.losu.nosp@m.re] is invoked.

The value of @ret is undefined if the function returns void.

Since: 2.80

Definition at line 52 of file girffi.h.