ghostty/include/ghostty.h
Mitchell Hashimoto 9bd527fe00 macos: config API
2023-02-19 10:44:54 -08:00

31 lines
852 B
C

// Ghostty embedding API. The documentation for the embedding API is
// only within the Zig source files that define the implementations. This
// isn't meant to be a general purpose embedding API (yet) so there hasn't
// been documentation or example work beyond that.
//
// The only consumer of this API is the macOS app, but the API is built to
// be more general purpose.
#ifndef GHOSTTY_H
#define GHOSTTY_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
typedef void *ghostty_t;
typedef void *ghostty_config_t;
ghostty_t ghostty_init(void);
ghostty_config_t ghostty_config_new(ghostty_t);
void ghostty_config_free(ghostty_t, ghostty_config_t);
void ghostty_config_load_string(ghostty_t, ghostty_config_t, const char *, uintptr_t);
void ghostty_config_finalize(ghostty_config_t);
#ifdef __cplusplus
}
#endif
#endif /* GHOSTTY_H */