#include <PhasorFFI.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <dirent.h>
#include <signal.h>
#include <time.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
| static PhasorValue | phasor_open (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_close (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_read (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_write (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_unlink (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_mkdir (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_rmdir (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_fork (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_execve (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_waitpid (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_kill (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_sleep (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_nanosleep (PhasorVM *vm, int argc, const PhasorValue *argv) |
| static PhasorValue | phasor_clock_gettime (PhasorVM *vm, int argc, const PhasorValue *argv) |
| PHASOR_FFI_EXPORT void | phasor_plugin_entry (const PhasorAPI *api, PhasorVM *vm) |
| | The one and only entry point for a Phasor plugin.
|
◆ PHASOR_FFI_BUILD_DLL
| #define PHASOR_FFI_BUILD_DLL |
◆ phasor_clock_gettime()
◆ phasor_close()
◆ phasor_execve()
◆ phasor_fork()
◆ phasor_kill()
◆ phasor_mkdir()
◆ phasor_nanosleep()
◆ phasor_open()
◆ phasor_plugin_entry()
The one and only entry point for a Phasor plugin.
A Phasor-compatible shared library MUST export a C function with this exact signature. The Phasor host will call this function when the plugin is loaded, providing the plugin with a pointer to the host's API functions and the current VM instance.
- Parameters
-
| api | A pointer to a struct containing function pointers that the plugin can use to interact with the host (e.g., register functions). |
| vm | An opaque pointer to the VM instance. This should be passed back to any API functions that require it. |
Definition at line 150 of file posix_bindings.c.
◆ phasor_read()
◆ phasor_rmdir()
◆ phasor_sleep()
◆ phasor_unlink()
◆ phasor_waitpid()
◆ phasor_write()