forked from cesanta/fossa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also renames remaining references of Net Skeleton to Fossa
- Loading branch information
Marko Mikulicic
committed
Nov 20, 2014
1 parent
9e1486b
commit 6f5d7c9
Showing
15 changed files
with
52 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
index.html | ||
skeleton.adoc | ||
net.adoc | ||
http.adoc | ||
json-rpc.adoc | ||
mqtt.adoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,8 +197,8 @@ void iobuf_resize(struct iobuf *, size_t new_size); | |
* license, as set out in <http://cesanta.com/>. | ||
*/ | ||
|
||
#ifndef NS_SKELETON_HEADER_INCLUDED | ||
#define NS_SKELETON_HEADER_INCLUDED | ||
#ifndef NS_NET_HEADER_INCLUDED | ||
#define NS_NET_HEADER_INCLUDED | ||
|
||
|
||
#ifdef NS_ENABLE_SSL | ||
|
@@ -238,7 +238,7 @@ size_t strvbuf_append(struct iobuf *, const void *data, size_t data_size); | |
struct ns_str *strvbuf_extract(struct iobuf *, size_t *len); | ||
|
||
/* Callback function (event handler) prototype, must be defined by user. */ | ||
/* Net skeleton will call event handler, passing events defined above. */ | ||
/* Fossa will call event handler, passing events defined above. */ | ||
struct ns_connection; | ||
typedef void (*ns_event_handler_t)(struct ns_connection *, int ev, void *); | ||
|
||
|
@@ -373,7 +373,7 @@ int ns_resolve(const char *domain_name, char *ip_addr_buf, size_t buf_len); | |
} | ||
#endif /* __cplusplus */ | ||
|
||
#endif /* NS_SKELETON_HEADER_INCLUDED */ | ||
#endif /* NS_NET_HEADER_INCLUDED */ | ||
/* | ||
* Copyright (c) 2004-2013 Sergey Lyubka <[email protected]> | ||
* Copyright (c) 2013 Cesanta Software Limited | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FR = ../../frozen | ||
HEADERS = common.h iobuf.h skeleton.h $(FR)/frozen.h sha1.h util.h http.h json-rpc.h mqtt.h | ||
SOURCES = iobuf.c skeleton.c $(FR)/frozen.c http.c sha1.c util.c json-rpc.c mqtt.c | ||
HEADERS = common.h iobuf.h net.h $(FR)/frozen.h sha1.h util.h http.h json-rpc.h mqtt.h | ||
SOURCES = iobuf.c net.c $(FR)/frozen.c http.c sha1.c util.c json-rpc.c mqtt.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
# | ||
# This script embeds fossa directly into the source file. | ||
# The source file must have a placeholder for the fossa code, | ||
# two following lines: | ||
|
||
# // fossa start | ||
# // fossa end | ||
# | ||
# Fossa code will be inserted between those two lines. | ||
|
||
if ! test -f "$1" ; then | ||
echo "Usage: $0 <source_file>" | ||
exit 1 | ||
fi | ||
|
||
D=`dirname $0` | ||
|
||
F1=$D/../fossa.h | ||
F2=$D/../fossa.c | ||
|
||
sed '/#include "fossa.h"/d' $F2 > /tmp/$$ | ||
F2=/tmp/$$ | ||
|
||
A='\/\/ fossa start' | ||
B='\/\/ fossa end' | ||
|
||
sed -i .$$.bak -e "/$A/,/$B/ { /$A/{ n; r $F1" -e "r $F2" -e "}; /$B/!d; }" "$1" |
This file was deleted.
Oops, something went wrong.