Skip to content

Commit

Permalink
OOP: Only expose APIs
Browse files Browse the repository at this point in the history
Hide the implementation details of the structure

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Jan 1, 2021
1 parent 2fd658c commit 01bfeb6
Show file tree
Hide file tree
Showing 8 changed files with 291 additions and 203 deletions.
2 changes: 1 addition & 1 deletion example/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int main(int argc, char **argv)
srv->set_docroot(srv, docroot);
srv->set_index_page(srv, index_page);

srv->default_handler = default_handler;
srv->set_default_handler(srv, default_handler);

srv->add_path_handler(srv, "/upload", upload_handler);

Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DI
install(
FILES
uhttpd.h
connection.h
log.h
buffer/buffer.h
http-parser/http_parser.h
Expand Down
Loading

0 comments on commit 01bfeb6

Please sign in to comment.