-
Notifications
You must be signed in to change notification settings - Fork 1
/
libUplink_win.h
41 lines (32 loc) · 1.27 KB
/
libUplink_win.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef LIBUPLINK_H
#define LIBUPLINK_H
#include "./functions_win/definitions_win.h"
#include "./functions_win/promises_complete_win.h"
#include "./functions_win/promises_execute_win.h"
#include "./functions_win/project_operations_win.h"
#include "./functions_win/access_operations_win.h"
void reverse(char str[], int length);
char* itoa(int num, char* str, int base);
//
extern HINSTANCE hGetProcIDDLL;
void loaddll();
napi_value AccessFunction(napi_env env, napi_value AccessNAPIObj);
napi_value ProjectFunction(napi_env env, napi_value projectNAPIObj);
//function creates NAPI type error object
napi_value createError(napi_env env, int64_t accessError, char* errorMessagePtr);
//
int64_t getHandleValue(napi_env env, napi_value handleobj);
//
napi_value createResult(napi_env env, string resultType, int64_t handlevalue);
//
napi_value createBucketResult(napi_env env, string resultType, int64_t bucketCreated, char* bucketNamePtr);
//
napi_value createObjectResult(napi_env env, Object* objectPtr);
//
napi_value list_objectsc(napi_env env, napi_callback_info info);
//
napi_value list_bucketsc(napi_env env, napi_callback_info info);
//
#define DECLARE_NAPI_METHOD(name, func) \
{name, 0, func, 0, 0, 0, napi_default, 0 }
#endif //LIBUPLINK_H