22 #define se3_trace(msg) printf msg 24 #define se3_trace(msg) 33 #define SE3_SN_SIZE (32) 40 typedef wchar_t se3_char;
41 #define SE3_MAGIC_FILE (L".se3magic") 42 #define SE3_OSSEP (L'\\') 43 #define SE3_MAX_PATH (256) 50 typedef char se3_char;
51 #define SE3_MAGIC_FILE (".se3magic") 52 #define SE3_OSSEP ('/') 53 #define SE3_MAX_PATH (256) 56 #define SE3_MAGIC_FILE_LEN (9) 59 uint8_t serialno[SE3_SERIAL_SIZE];
60 uint8_t hello_msg[SE3_HELLO_SIZE];
64 #define SE3_DRIVE_BUF_MAX (1024) 70 se3_char buf_[SE3_DRIVE_BUF_MAX + 1];
79 void se3c_rand(
size_t len, uint8_t* buf);
84 bool se3c_write(uint8_t* buf,
se3_file hfile,
size_t block,
size_t size, uint32_t timeout);
85 bool se3c_read(uint8_t* buf,
se3_file hfile,
size_t block,
size_t size, uint32_t timeout);
91 uint64_t se3c_deadline(uint32_t timeout);
92 void se3c_pathcopy(se3_char* dest, se3_char* src);
93 uint64_t se3c_clock();
96 #define se3c_sleep() Sleep(0) 98 #define se3c_sleep() usleep(1000) 101 #define SE3C_MAGIC_TIMEOUT (1000)