mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-06 21:37:49 +00:00
macos: config API
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
// 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
|
||||
|
||||
@@ -7,9 +14,14 @@ extern "C" {
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define GHOSTTY_SUCCESS 0
|
||||
typedef void *ghostty_t;
|
||||
typedef void *ghostty_config_t;
|
||||
|
||||
int ghostty_init(void);
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user