-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API restructured to take a pointer to a state struct (libifc_handle_t*). Calling application obtains this pointer by calling libifc_open(), and frees/clears it by calling libifc_close(ptr). Calling application may use as many libifc_handle_t* as it wishes. Intended use case is one per thread in a multithreaded application. Calling application now use libifc_err_errtype(ptr), libifc_err_errno(ptr) and libifc_err_ioctlreq(ptr) to retrieve error information. Exposed some internal APIs via libifconfig_internal.h. Currently intended for use by source files in libifconfig only, therefore not installed to the usual places.
- Loading branch information
1 parent
b565728
commit 6855998
Showing
6 changed files
with
201 additions
and
157 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
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,2 +1,2 @@ | ||
default: | ||
$(CC) -Wall -fPIC -shared -o libifconfig.so libifconfig.c libifconfig_socketcache.c | ||
$(CC) -Wall -fPIC -shared -o libifconfig.so libifconfig.c libifconfig_internal.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
Oops, something went wrong.