PatchworkOS
Loading...
Searching...
No Matches
patch_up.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <sys/list.h>

Go to the source code of this file.

Data Structures

struct  aml_patch_up_entry_t
 Entry in the global list of unresolved references. More...
 

Typedefs

typedef struct aml_unresolved_obj aml_unresolved_obj_t
 
typedef struct aml_object aml_object_t
 
typedef struct aml_state aml_state_t
 
typedef uint64_t(* aml_patch_up_resolve_callback_t) (aml_state_t *state, aml_object_t *match, aml_object_t *unresolved)
 Callback type for resolving a forward reference.
 

Functions

uint64_t aml_patch_up_init (void)
 Initialize the patch-up system.
 
uint64_t aml_patch_up_add_unresolved (aml_unresolved_obj_t *unresolved)
 Adds a unresolved reference to the global list.
 
void aml_patch_up_remove_unresolved (aml_unresolved_obj_t *unresolved)
 Removes an unresolved reference from the global list.
 
uint64_t aml_patch_up_resolve_all (void)
 Attempts to resolve all unresolved references.
 
uint64_t aml_patch_up_unresolved_count (void)
 Get the number of unresolved references in the global list.
 

Typedef Documentation

◆ aml_object_t

typedef struct aml_object aml_object_t

Definition at line 8 of file patch_up.h.

◆ aml_state_t

typedef struct aml_state aml_state_t

Definition at line 9 of file patch_up.h.

◆ aml_unresolved_obj_t

typedef struct aml_unresolved_obj aml_unresolved_obj_t

Definition at line 7 of file patch_up.h.