mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-07 23:07:14 +02:00
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct JsonnetVm {
|
|
uint32_t id;
|
|
};
|
|
|
|
struct JsonnetVm *jsonnet_internal_make_vm_with_id(uint32_t id);
|
|
void jsonnet_internal_free_vm(struct JsonnetVm *x);
|
|
|
|
struct JsonnetJsonValue {
|
|
uint32_t id;
|
|
};
|
|
|
|
struct JsonnetJsonValue *jsonnet_internal_make_json_with_id(uint32_t id);
|
|
void jsonnet_internal_free_json(struct JsonnetJsonValue *x);
|
|
|
|
typedef struct JsonnetJsonValue *JsonnetNativeCallback(void *ctx,
|
|
const struct JsonnetJsonValue *const *argv,
|
|
int *success);
|
|
|
|
struct JsonnetJsonValue* jsonnet_internal_execute_native(JsonnetNativeCallback *cb,
|
|
void *ctx,
|
|
const struct JsonnetJsonValue *const *argv,
|
|
int *success);
|
|
|
|
typedef char *JsonnetImportCallback(void *ctx,
|
|
const char *base,
|
|
const char *rel,
|
|
char **found_here,
|
|
int *success);
|
|
|
|
char* jsonnet_internal_execute_import(JsonnetImportCallback *cb,
|
|
void *ctx,
|
|
const char *base,
|
|
const char *rel,
|
|
char **found_here,
|
|
int *success);
|
|
|
|
void jsonnet_internal_free_string(char *str);
|