Serve core static files without leaving C.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4833 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
typedef struct JSContext JSContext;
|
||||
typedef struct _tf_task_t tf_task_t;
|
||||
|
||||
void tf_file_register(JSContext* context);
|
||||
|
||||
void tf_file_stat(tf_task_t* task, const char* path, void (*callback)(tf_task_t* task, const char* path, int result, const uv_stat_t* stat, void* user_data), void* user_data);
|
||||
void tf_file_read(tf_task_t* task, const char* path, void (*callback)(tf_task_t* task, const char* path, int result, const void* data, void* user_data), void* user_data);
|
||||
|
Reference in New Issue
Block a user