Mercurial > dropbear
comparison listener.h @ 1049:01eea88963f3 fastopen
merge from default
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 28 Feb 2015 09:06:40 +0800 |
parents | 2b4fd440399d |
children | 9169e4e7cbee |
comparison
equal
deleted
inserted
replaced
1048:9cec9ed503bb | 1049:01eea88963f3 |
---|---|
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 | 24 |
25 #ifndef _LISTENER_H | 25 #ifndef DROPBEAR_LISTENER_H |
26 #define _LISTENER_H | 26 #define DROPBEAR_LISTENER_H |
27 | 27 |
28 #define MAX_LISTENERS 20 | 28 #define MAX_LISTENERS 20 |
29 #define LISTENER_EXTEND_SIZE 1 | 29 #define LISTENER_EXTEND_SIZE 1 |
30 | 30 |
31 struct Listener { | 31 struct Listener { |
58 struct Listener * get_listener(int type, void* typedata, | 58 struct Listener * get_listener(int type, void* typedata, |
59 int (*match)(void*, void*)); | 59 int (*match)(void*, void*)); |
60 | 60 |
61 void remove_listener(struct Listener* listener); | 61 void remove_listener(struct Listener* listener); |
62 | 62 |
63 #endif /* _LISTENER_H */ | 63 void remove_all_listeners(void); |
64 | |
65 #endif /* DROPBEAR_LISTENER_H */ |