Skip to content

Commit

Permalink
Revise export header includes
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Oct 18, 2024
1 parent c0d2f53 commit 6e5f806
Show file tree
Hide file tree
Showing 36 changed files with 60 additions and 92 deletions.
4 changes: 2 additions & 2 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
vendorpull https://github.com/sourcemeta/vendorpull 70342aaf458e6cb80baeb5b718901075fc42ede6
noa https://github.com/sourcemeta/noa 837e1ff981f8df45d9e2977a50f5da61d8affed4
jsontoolkit https://github.com/sourcemeta/jsontoolkit 9685d29e2e633d71319c64b1ab2fbceab865dbf3
noa https://github.com/sourcemeta/noa caad2e1ceedf9fd1a18686a6a6d1e2b9757ead75
jsontoolkit https://github.com/sourcemeta/jsontoolkit 2d78929faf0f96110edfb67fa3ddf6916cf35ef7
bearssl https://www.bearssl.org/git/BearSSL 8ef7680081c61b486622f2d983c0d3d21e83caad
zlib https://github.com/madler/zlib 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
uwebsockets https://github.com/uNetworking/uWebSockets v20.67.0
Expand Down
6 changes: 2 additions & 4 deletions src/bucket/include/sourcemeta/hydra/bucket.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_BUCKET_H
#define SOURCEMETA_HYDRA_BUCKET_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_BUCKET_EXPORT
#else
#include "bucket_export.h"
#ifndef SOURCEMETA_HYDRA_BUCKET_EXPORT
#include <sourcemeta/hydra/bucket_export.h>
#endif

/// @defgroup bucket Bucket
Expand Down
6 changes: 2 additions & 4 deletions src/bucket/include/sourcemeta/hydra/bucket_aws_sigv4.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_BUCKET_AWS_SIGV4_H
#define SOURCEMETA_HYDRA_BUCKET_AWS_SIGV4_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_BUCKET_EXPORT
#else
#include "bucket_export.h"
#ifndef SOURCEMETA_HYDRA_BUCKET_EXPORT
#include <sourcemeta/hydra/bucket_export.h>
#endif

#include <sourcemeta/hydra/http.h>
Expand Down
6 changes: 2 additions & 4 deletions src/bucket/include/sourcemeta/hydra/bucket_error.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_BUCKET_ERROR_H
#define SOURCEMETA_HYDRA_BUCKET_ERROR_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_BUCKET_EXPORT
#else
#include "bucket_export.h"
#ifndef SOURCEMETA_HYDRA_BUCKET_EXPORT
#include <sourcemeta/hydra/bucket_export.h>
#endif

#include <exception> // std::exception
Expand Down
6 changes: 2 additions & 4 deletions src/crypto/include/sourcemeta/hydra/crypto.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_CRYPTO_H
#define SOURCEMETA_HYDRA_CRYPTO_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_CRYPTO_EXPORT
#else
#include "crypto_export.h"
#ifndef SOURCEMETA_HYDRA_CRYPTO_EXPORT
#include <sourcemeta/hydra/crypto_export.h>
#endif

#include <ostream> // std::ostream
Expand Down
6 changes: 2 additions & 4 deletions src/http/include/sourcemeta/hydra/http_error.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTP_ERROR_H
#define SOURCEMETA_HYDRA_HTTP_ERROR_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTP_EXPORT
#else
#include "http_export.h"
#ifndef SOURCEMETA_HYDRA_HTTP_EXPORT
#include <sourcemeta/hydra/http_export.h>
#endif

#include <exception> // std::exception
Expand Down
6 changes: 2 additions & 4 deletions src/http/include/sourcemeta/hydra/http_header.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTP_HEADER_H
#define SOURCEMETA_HYDRA_HTTP_HEADER_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTP_EXPORT
#else
#include "http_export.h"
#ifndef SOURCEMETA_HYDRA_HTTP_EXPORT
#include <sourcemeta/hydra/http_export.h>
#endif

#include <chrono> // std::chrono::system_clock::time_point
Expand Down
6 changes: 2 additions & 4 deletions src/http/include/sourcemeta/hydra/http_method.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTP_METHOD_H
#define SOURCEMETA_HYDRA_HTTP_METHOD_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTP_EXPORT
#else
#include "http_export.h"
#ifndef SOURCEMETA_HYDRA_HTTP_EXPORT
#include <sourcemeta/hydra/http_export.h>
#endif

#include <ostream> // std::ostream
Expand Down
6 changes: 2 additions & 4 deletions src/http/include/sourcemeta/hydra/http_mime.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTP_MIME_H
#define SOURCEMETA_HYDRA_HTTP_MIME_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTP_EXPORT
#else
#include "http_export.h"
#ifndef SOURCEMETA_HYDRA_HTTP_EXPORT
#include <sourcemeta/hydra/http_export.h>
#endif

#include <filesystem> // std::filesystem
Expand Down
6 changes: 2 additions & 4 deletions src/http/include/sourcemeta/hydra/http_status.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTP_STATUS_H
#define SOURCEMETA_HYDRA_HTTP_STATUS_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTP_EXPORT
#else
#include "http_export.h"
#ifndef SOURCEMETA_HYDRA_HTTP_EXPORT
#include <sourcemeta/hydra/http_export.h>
#endif

#include <cstdint> // std::uint16_t
Expand Down
6 changes: 2 additions & 4 deletions src/http/include/sourcemeta/hydra/http_time.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTP_TIME_H
#define SOURCEMETA_HYDRA_HTTP_TIME_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTP_EXPORT
#else
#include "http_export.h"
#ifndef SOURCEMETA_HYDRA_HTTP_EXPORT
#include <sourcemeta/hydra/http_export.h>
#endif

#include <chrono> // std::chrono::system_clock::time_point
Expand Down
6 changes: 2 additions & 4 deletions src/httpclient/include/sourcemeta/hydra/httpclient_request.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPCLIENT_REQUEST_H
#define SOURCEMETA_HYDRA_HTTPCLIENT_REQUEST_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPCLIENT_EXPORT
#else
#include "httpclient_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPCLIENT_EXPORT
#include <sourcemeta/hydra/httpclient_export.h>
#endif

#include <sourcemeta/hydra/http.h>
Expand Down
6 changes: 2 additions & 4 deletions src/httpclient/include/sourcemeta/hydra/httpclient_response.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPCLIENT_RESPONSE_H
#define SOURCEMETA_HYDRA_HTTPCLIENT_RESPONSE_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPCLIENT_EXPORT
#else
#include "httpclient_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPCLIENT_EXPORT
#include <sourcemeta/hydra/httpclient_export.h>
#endif

#include <sourcemeta/hydra/http.h>
Expand Down
6 changes: 2 additions & 4 deletions src/httpclient/include/sourcemeta/hydra/httpclient_stream.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPCLIENT_STREAM_H
#define SOURCEMETA_HYDRA_HTTPCLIENT_STREAM_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPCLIENT_EXPORT
#else
#include "httpclient_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPCLIENT_EXPORT
#include <sourcemeta/hydra/httpclient_export.h>
#endif

#include <sourcemeta/hydra/http.h>
Expand Down
6 changes: 2 additions & 4 deletions src/httpserver/include/sourcemeta/hydra/httpserver.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_H
#define SOURCEMETA_HYDRA_HTTPSERVER_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#else
#include "httpserver_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#include <sourcemeta/hydra/httpserver_export.h>
#endif

/// @defgroup httpserver HTTP Server
Expand Down
6 changes: 2 additions & 4 deletions src/httpserver/include/sourcemeta/hydra/httpserver_logger.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_LOGGER_H
#define SOURCEMETA_HYDRA_HTTPSERVER_LOGGER_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#else
#include "httpserver_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#include <sourcemeta/hydra/httpserver_export.h>
#endif

#include <string> // std::string
Expand Down
6 changes: 2 additions & 4 deletions src/httpserver/include/sourcemeta/hydra/httpserver_request.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_REQUEST_H
#define SOURCEMETA_HYDRA_HTTPSERVER_REQUEST_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#else
#include "httpserver_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#include <sourcemeta/hydra/httpserver_export.h>
#endif

#include <sourcemeta/hydra/http.h>
Expand Down
6 changes: 2 additions & 4 deletions src/httpserver/include/sourcemeta/hydra/httpserver_response.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_RESPONSE_H
#define SOURCEMETA_HYDRA_HTTPSERVER_RESPONSE_H

#if defined(__Unikraft__)
#define SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#else
#include "httpserver_export.h"
#ifndef SOURCEMETA_HYDRA_HTTPSERVER_EXPORT
#include <sourcemeta/hydra/httpserver_export.h>
#endif

#include <sourcemeta/hydra/http.h>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6e5f806

Please sign in to comment.