go-jsonnet/c-bindings/internal.h
Alexander Petrov 6e9943c99d * Implemented jsonnet_native_callback
* Moved handles workflow to handles.go
* Replaced JsonnetJsonValue c++ implementation with go
* Added jsonnet_json_* integration tests
2019-10-06 21:20:15 +02:00

26 lines
915 B
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);