PatchworkOS
Loading...
Searching...
No Matches
builtin.h File Reference
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  builtin_t
 

Functions

bool builtin_exists (const char *name)
 
uint64_t builtin_execute (uint64_t argc, const char **argv)
 

Function Documentation

◆ builtin_execute()

uint64_t builtin_execute ( uint64_t  argc,
const char **  argv 
)

Definition at line 100 of file builtin.c.

References builtins, builtin_t::callback, ERR, and strcmp().

Referenced by pipeline_execute_builtin().

◆ builtin_exists()

bool builtin_exists ( const char *  name)

Definition at line 87 of file builtin.c.

References builtins, and strcmp().

Referenced by pipeline_execute_cmd().