mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
36 lines
516 B
C++
36 lines
516 B
C++
#ifndef C_PHOTONWRAPPER_H_
|
|
#define C_PHOTONWRAPPER_H_
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <fcntl.h>
|
|
//#include <vector>
|
|
|
|
#include <photon/thread/std-compat.h>
|
|
#include <photon/common/alog.h>
|
|
#include <photon/common/iovector.h>
|
|
#include <photon/fs/localfs.h>
|
|
#include <photon/net/socket.h>
|
|
|
|
#include <iostream>
|
|
|
|
extern "C" {
|
|
#else
|
|
|
|
#endif
|
|
|
|
int photon_init_default();
|
|
void photon_thread_create(void* (* f)(void*), void* arg);
|
|
void photon_sleep_s(int n);
|
|
void photon_sleep_ms(int n);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|