636#if defined _WIN32 || defined __CYGWIN__
637 #define _LPFLIB_HELPER_DLL_IMPORT __declspec(dllimport)
638 #define _LPFLIB_HELPER_DLL_EXPORT __declspec(dllexport)
639 #define _LPFLIB_HELPER_DLL_LOCAL
641 #define _LPFLIB_HELPER_VAR_IMPORT __declspec(dllimport)
642 #define _LPFLIB_HELPER_VAR_EXPORT __declspec(dllexport)
645 #define _LPFLIB_HELPER_DLL_IMPORT __attribute__ ((visibility ("default")))
646 #define _LPFLIB_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
647 #define _LPFLIB_HELPER_DLL_LOCAL __attribute__ ((visibility ("hidden")))
649 #define _LPFLIB_HELPER_DLL_IMPORT
650 #define _LPFLIB_HELPER_DLL_EXPORT
651 #define _LPFLIB_HELPER_DLL_LOCAL
654 #define _LPFLIB_HELPER_VAR_IMPORT
655 #define _LPFLIB_HELPER_VAR_EXPORT
664 #ifdef _LPFLIB_DLL_EXPORTS
665 #define _LPFLIB_API _LPFLIB_HELPER_DLL_EXPORT
666 #define _LPFLIB_VAR _LPFLIB_HELPER_VAR_EXPORT
668 #define _LPFLIB_API _LPFLIB_HELPER_DLL_IMPORT
669 #define _LPFLIB_VAR _LPFLIB_HELPER_VAR_IMPORT
671 #define _LPFLIB_LOCAL _LPFLIB_HELPER_DLL_LOCAL
675 #define _LPFLIB_LOCAL
681#include <lpf/static_dispatch.h>
706#define _LPF_VERSION 202000L
723#define _LPF_INCLUSIVE_MEMORY 202000L
738#define _LPF_EXCLUSIVE_MEMORY 202000L
821typedef struct lpf_args
956typedef struct lpf_machine {
lpf_err_t lpf_probe(lpf_t ctx, lpf_machine_t *params)
typedef lpf_sync_attr_t
Definition: core.h:941
const lpf_args_t LPF_NO_ARGS
lpf_err_t lpf_register_global(lpf_t ctx, void *pointer, size_t size, lpf_memslot_t *memslot)
lpf_err_t lpf_rehook(lpf_t ctx, lpf_spmd_t spmd, lpf_args_t args)
typedef lpf_memslot_t
Definition: core.h:1042
const lpf_init_t LPF_INIT_NONE
const lpf_pid_t LPF_MAX_P
lpf_err_t lpf_resize_memory_register(lpf_t ctx, size_t max_regs)
lpf_err_t lpf_resize_message_queue(lpf_t ctx, size_t max_msgs)
lpf_err_t lpf_deregister(lpf_t ctx, lpf_memslot_t memslot)
void(* lpf_func_t)()
Definition: core.h:800
lpf_err_t lpf_register_local(lpf_t ctx, void *pointer, size_t size, lpf_memslot_t *memslot)
void(* lpf_spmd_t)(const lpf_t ctx, const lpf_pid_t pid, const lpf_pid_t nprocs, const lpf_args_t args)
Definition: core.h:1102
lpf_err_t lpf_exec(lpf_t ctx, lpf_pid_t P, lpf_spmd_t spmd, lpf_args_t args)
lpf_err_t lpf_get(lpf_t ctx, lpf_pid_t src_pid, lpf_memslot_t src_slot, size_t src_offset, lpf_memslot_t dst_slot, size_t dst_offset, size_t size, lpf_msg_attr_t attr)
const lpf_msg_attr_t LPF_MSG_DEFAULT
lpf_err_t lpf_hook(lpf_init_t init, lpf_spmd_t spmd, lpf_args_t args)
const lpf_memslot_t LPF_INVALID_MEMSLOT
const lpf_machine_t LPF_INVALID_MACHINE
lpf_err_t lpf_sync(lpf_t ctx, lpf_sync_attr_t attr)
typedef lpf_init_t
Definition: core.h:919
typedef lpf_msg_attr_t
Definition: core.h:1065
const lpf_sync_attr_t LPF_SYNC_DEFAULT
void * lpf_t
Definition: core.h:775
typedef lpf_pid_t
Definition: core.h:786
typedef lpf_err_t
Definition: core.h:871
lpf_err_t lpf_put(lpf_t ctx, lpf_memslot_t src_slot, size_t src_offset, lpf_pid_t dst_pid, lpf_memslot_t dst_slot, size_t dst_offset, size_t size, lpf_msg_attr_t attr)
const lpf_err_t LPF_ERR_OUT_OF_MEMORY
const lpf_err_t LPF_ERR_FATAL
const lpf_err_t LPF_SUCCESS
size_t output_size
Definition: core.h:833
size_t input_size
Definition: core.h:827
const void * input
Definition: core.h:824
void * output
Definition: core.h:830
const lpf_func_t * f_symbols
Definition: core.h:836
size_t f_size
Definition: core.h:839
lpf_pid_t free_p
Definition: core.h:978
lpf_pid_t p
Definition: core.h:966