-
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.
Merge pull request #7 from openbfdev/feat-usb
Feat usb
- Loading branch information
Showing
12 changed files
with
240 additions
and
86 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef __XDBD_CONNECTION_USB__H__ | ||
#define __XDBD_CONNECTION_USB__H__ | ||
|
||
#include <xdbd.h> | ||
#include <xdbd_string.h> | ||
#include <connection.h> | ||
|
||
struct xdbd_usb_listening_s { | ||
xdbd_str_t name; | ||
xdbd_str_t ctr; | ||
xdbd_str_t in; | ||
xdbd_str_t out; | ||
|
||
xdbd_connection_handler_pt handler; | ||
|
||
xdbd_socket_t event_fd; | ||
|
||
xdbd_socket_t fd_ctr; | ||
xdbd_socket_t fd_in; | ||
xdbd_socket_t fd_out; | ||
|
||
xdbd_connection_t *conn_ctl; | ||
xdbd_connection_t *conn_in; | ||
xdbd_connection_t *conn_out; | ||
|
||
}; | ||
|
||
xdbd_usb_listening_t *xdbd_create_usb_listening(xdbd_t *xdbd); | ||
int xdbd_open_usb_listening_sockets(xdbd_t *xdbd); | ||
#endif /*__XDBD_CONNECTION_USB__H__*/ |
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.