mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 00:40:47 +00:00
27 lines
513 B
C
27 lines
513 B
C
#ifndef SHARED_H
|
|
#define SHARED_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
|
|
#ifdef _WIN32
|
|
#include <unistd.h>
|
|
#include <windows.h>
|
|
typedef HMODULE lib_handle_t;
|
|
#else
|
|
#include <dlfcn.h>
|
|
typedef void* lib_handle_t;
|
|
#endif
|
|
|
|
extern lib_handle_t handle;
|
|
|
|
void *load_function(const char *func_name);
|
|
char *compact_json(const char *json);
|
|
char *get_load_error(void);
|
|
lib_handle_t load_library(const char *path);
|
|
void close_library(lib_handle_t handle);
|
|
|
|
#endif
|