str_to_gensio_accepter
Create a gensio accepter from a string
- Provided by: libgensio-dev (Version: 2.3.5-1build2)
- Source: gensio
- Report a bug
Create a gensio accepter from a string
#include <gensio/gensio.h>
str_to_gensio_accepter allocates a new gensio accepter stack based upon the given string str.
The cb and user_data parameters set a function that will be called when events come in on the gensio accepter. user_data is unused by the gensio stack itself, it is there for the user and may be anything the user wishes.
The new gensio accepter is returned in acc. It will be in the shutdown state.
Zero is returned on success, or a gensio error on failure.