Skip to content

Commit 88892bd

Browse files
committed
UPD | windows support
2 parents a54a9f4 + ff3a487 commit 88892bd

115 files changed

Lines changed: 970 additions & 707 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/conan_build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Cache Conan Dependencies (Ubuntu Latest)
5252
if: ${{ matrix.os == 'ubuntu-latest' }}
5353
id: cache-conan-ubuntu
54-
uses: actions/cache/restore@v4
54+
uses: actions/cache@v4
5555
with:
5656
path: /home/runner/.conan2
5757
key: conan-${{ runner.os }}-${{ matrix.c_compiler }}-${{ matrix.library_type }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
cmake-build-debug
22
cmake-build-release
3+
cmake-build-exe
34
examples/CMakeFiles
45
examples/CMakeCache.txt
56
examples/cmake_install.cmake

include/ManapiAsync.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ namespace manapi {
2222

2323
extern thread_local std::shared_ptr<cthread> current_cthread_;
2424

25-
DLLExportImport const std::shared_ptr<threadpool> &ethreadpool_(const std::shared_ptr<cthread> &ctx) MANAPIHTTP_NOEXCEPT;
25+
const std::shared_ptr<threadpool> &ethreadpool_(const std::shared_ptr<cthread> &ctx) MANAPIHTTP_NOEXCEPT;
2626

27-
DLLExportImport const std::shared_ptr<cthread> &current_ () MANAPIHTTP_NOEXCEPT;
27+
const std::shared_ptr<cthread> &current_ () MANAPIHTTP_NOEXCEPT;
2828

29-
DLLExportImport std::size_t current_stack_cnt_crt () MANAPIHTTP_NOEXCEPT;
29+
std::size_t current_stack_cnt_crt () MANAPIHTTP_NOEXCEPT;
3030

31-
DLLExportImport void current_stack_cnt_set (std::size_t cnt) MANAPIHTTP_NOEXCEPT;
31+
void current_stack_cnt_set (std::size_t cnt) MANAPIHTTP_NOEXCEPT;
3232

33-
DLLExportImport std::size_t max_stack_depth2 () MANAPIHTTP_NOEXCEPT;
33+
std::size_t max_stack_depth2 () MANAPIHTTP_NOEXCEPT;
3434

35-
DLLExportImport void max_stack_depth2 (std::size_t cnt) MANAPIHTTP_NOEXCEPT;
35+
void max_stack_depth2 (std::size_t cnt) MANAPIHTTP_NOEXCEPT;
3636
}
3737

38-
DLLExportImport const std::shared_ptr<cthread> &current () MANAPIHTTP_NOEXCEPT;
38+
const std::shared_ptr<cthread> &current () MANAPIHTTP_NOEXCEPT;
3939
}
4040

4141
class promise_base_future {

include/ManapiBigint.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace manapi {
2525
* Bigint provides utilities to work
2626
* with large integers and decimals.
2727
*/
28-
class DLLExportImport bigint {
28+
class bigint {
2929
struct data_t;
3030

3131
struct data_t_deleter {

include/ManapiDebug.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ namespace manapi::debug {
3636
};
3737
#endif
3838

39-
DLLExportImport extern int log_trace_enabled;
39+
extern int log_trace_enabled;
4040

41-
DLLExportImport void log_log(log_level type, const char* file, int line, const char* fmt, ...) MANAPIHTTP_NOEXCEPT;
41+
void log_log(log_level type, const char* file, int line, const char* fmt, ...) MANAPIHTTP_NOEXCEPT;
4242

43-
DLLExportImport void log_log(log_level type, const char* file, int line, int level, const char* fmt, ...) MANAPIHTTP_NOEXCEPT;
43+
void log_log(log_level type, const char* file, int line, int level, const char* fmt, ...) MANAPIHTTP_NOEXCEPT;
4444

4545
// Convenience macros
4646
#define manapi_log_trace(...) manapi::debug::log_log(manapi::debug::LOG_TRACE, __FILE__, __LINE__, __VA_ARGS__)

include/ManapiDns.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ namespace manapi::dns {
2222
* Errors:
2323
* -
2424
*/
25-
DLLExportImport manapi::future<int> getaddrinfo (const char * node, const char* service, const addrinfo *hints, addrinfo **res, async::cancellation_action token = nullptr);
25+
manapi::future<int> getaddrinfo (const char * node, const char* service, const addrinfo *hints, addrinfo **res, async::cancellation_action token = nullptr);
2626
}

include/ManapiErrors.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ namespace manapi {
152152
/**
153153
* manapi exception
154154
*/
155-
class DLLExportImport exception final : public std::exception {
155+
class exception final : public std::exception {
156156
union messages {
157157
std::string_view view{};
158158
std::string storage;
@@ -202,7 +202,7 @@ namespace manapi {
202202
};
203203

204204
namespace error {
205-
class DLLExportImport status {
205+
class status {
206206
public:
207207
status ();
208208

include/ManapiEventLoop.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace manapi::ev::internal {
7373
}
7474

7575
namespace manapi {
76-
class DLLExportImport event_loop {
76+
class event_loop {
7777
public:
7878
event_loop();
7979

include/ManapiEventStructures.hpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ namespace manapi::ev {
432432
/* Stores the result of fs::stat() and other stat requests. */
433433
typedef uv_stat_t stat_t;
434434

435-
class DLLExportImport async {
435+
class async {
436436
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(async, uv_async_t)
437437
public:
438438
MANAPIHTTP_EV_DEFAULT(async, uv_async_t)
@@ -480,7 +480,7 @@ namespace manapi::ev {
480480
uv_async_t s_;
481481
};
482482

483-
class DLLExportImport idle {
483+
class idle {
484484
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(idle, uv_idle_t)
485485
public:
486486
MANAPIHTTP_EV_DEFAULT(idle, uv_idle_t)
@@ -519,7 +519,7 @@ namespace manapi::ev {
519519
uv_idle_t s_;
520520
};
521521

522-
class DLLExportImport check {
522+
class check {
523523
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(check, uv_check_t)
524524
public:
525525
MANAPIHTTP_EV_DEFAULT(check, uv_check_t)
@@ -558,7 +558,7 @@ namespace manapi::ev {
558558
uv_check_t s_;
559559
};
560560

561-
class DLLExportImport io {
561+
class io {
562562
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(io, uv_poll_t)
563563
public:
564564
MANAPIHTTP_EV_DEFAULT(io, uv_poll_t)
@@ -590,7 +590,7 @@ namespace manapi::ev {
590590
uv_poll_t s_;
591591
};
592592

593-
class DLLExportImport write {
593+
class write {
594594
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(write, uv_write_t)
595595
public:
596596
MANAPIHTTP_EV_DEFAULT(write, uv_write_t)
@@ -616,7 +616,7 @@ namespace manapi::ev {
616616
uv_connect_t s_{};
617617
};
618618

619-
class DLLExportImport tcp {
619+
class tcp {
620620
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(tcp, uv_tcp_t)
621621
public:
622622
MANAPIHTTP_EV_DEFAULT(tcp, uv_tcp_t)
@@ -661,7 +661,7 @@ namespace manapi::ev {
661661
uv_tcp_t s_;
662662
};
663663

664-
class DLLExportImport udp {
664+
class udp {
665665
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(udp, uv_udp_t)
666666
public:
667667
MANAPIHTTP_EV_DEFAULT(udp, uv_udp_t)
@@ -685,7 +685,7 @@ namespace manapi::ev {
685685
uv_udp_t s_;
686686
};
687687

688-
class DLLExportImport udp_send {
688+
class udp_send {
689689
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(udp_send, uv_udp_send_t)
690690
public:
691691
MANAPIHTTP_EV_DEFAULT(udp_send, uv_udp_send_t)
@@ -698,7 +698,7 @@ namespace manapi::ev {
698698
uv_udp_send_t s_;
699699
};
700700

701-
class DLLExportImport prepare {
701+
class prepare {
702702
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(prepare, uv_prepare_t)
703703
public:
704704
MANAPIHTTP_EV_DEFAULT(prepare, uv_prepare_t)
@@ -715,7 +715,7 @@ namespace manapi::ev {
715715
uv_prepare_t s_;
716716
};
717717

718-
class DLLExportImport timer {
718+
class timer {
719719
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(timer, uv_timer_t)
720720
public:
721721
MANAPIHTTP_EV_DEFAULT(timer, uv_timer_t)
@@ -741,7 +741,7 @@ namespace manapi::ev {
741741
uv_timer_t s_;
742742
};
743743

744-
class DLLExportImport fs {
744+
class fs {
745745
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(fs, uv_fs_t)
746746
public:
747747
MANAPIHTTP_EV_DEFAULT(fs, uv_fs_t)
@@ -906,7 +906,7 @@ namespace manapi::ev {
906906
uv_fs_t s_;
907907
};
908908

909-
class DLLExportImport random {
909+
class random {
910910
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(random, uv_random_t)
911911
public:
912912
MANAPIHTTP_EV_DEFAULT(random, uv_random_t)
@@ -922,7 +922,7 @@ namespace manapi::ev {
922922
uv_random_t s_;
923923
};
924924

925-
class DLLExportImport getaddrinfo {
925+
class getaddrinfo {
926926
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(getaddrinfo, uv_getaddrinfo_t)
927927
public:
928928
MANAPIHTTP_EV_DEFAULT(getaddrinfo, uv_getaddrinfo_t)
@@ -940,7 +940,7 @@ namespace manapi::ev {
940940
uv_getaddrinfo_t s_;
941941
};
942942

943-
class DLLExportImport getnameinfo {
943+
class getnameinfo {
944944
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(getnameinfo, uv_getnameinfo_t)
945945
public:
946946
MANAPIHTTP_EV_DEFAULT(getnameinfo, uv_getnameinfo_t)
@@ -956,7 +956,7 @@ namespace manapi::ev {
956956
uv_getnameinfo_t s_;
957957
};
958958

959-
class DLLExportImport work {
959+
class work {
960960
MANAPIHTTP_EV_DEFAULT_PRIVATE_VAR(work, uv_work_t)
961961
public:
962962
MANAPIHTTP_EV_DEFAULT(work, uv_work_t)
@@ -997,7 +997,7 @@ namespace manapi::sys_error {
997997
/**
998998
* error status for the OS event
999999
*/
1000-
class DLLExportImport status final : public manapi::error::status {
1000+
class status final : public manapi::error::status {
10011001
public:
10021002
/**
10031003
* initialize error status

include/ManapiFetch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace manapi::net {
2121
* A Fetch FormData interface to work with the Fetch and Fetch2 API.
2222
* Based on the curl formdata
2323
*/
24-
class DLLExportImport fetch_formdata {
24+
class fetch_formdata {
2525
public:
2626
struct multipart_param_value_file {
2727
std::move_only_function<size_t (void *buff, size_t size)> callback;
@@ -110,7 +110,7 @@ namespace manapi::net {
110110
/**
111111
* Fetch API for C++. Based on cURL
112112
*/
113-
class DLLExportImport fetch {
113+
class fetch {
114114
public:
115115
struct data_t;
116116

0 commit comments

Comments
 (0)