-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcpip_notif.h
77 lines (62 loc) · 1.67 KB
/
tcpip_notif.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* =====================================================================================
*
* Filename: tcpip_notif.h
*
* Description: This file defines notification chain structures for TCP/IP stack lib
*
* Version: 1.0
*
* Revision: none
* Compiler: gcc
*
* Author: Purbayan Majumder, [email protected]
*
* =====================================================================================
*/
#ifndef __TCPIP_NOTIF_C
#define __TCPIP_NOTIF_C
#include "notif.h"
typedef struct interface_ interface_t;
typedef struct intf_nw_props_ intf_nw_props_t;
/*
* Structures for interface events notification
* to subscribers
*/
typedef struct intf_notif_data_{
interface_t *interface;
intf_prop_changed_t *old_intf_prop_changed;
uint32_t change_flags;
} intf_notif_data_t;
/* Routines for interface Notif Chains */
void
nfc_intf_register_for_events(nfc_app_cb app_cb);
void
nfc_intf_invoke_notification_to_sbscribers(
interface_t *intf,
intf_prop_changed_t *old_intf_prop_changed,
uint32_t change_flags);
/*
* Structure for wrapping up pkt info
* to be notified to application for printing.
* only appln has knowledge to recognize the
* pkt content and print it
* */
typedef struct pkt_info_{
uint32_t protocol_no;
char *pkt;
uint32_t pkt_size;
char *pkt_print_buffer;
uint32_t bytes_written;
} pkt_info_t;
void
nfc_register_for_pkt_tracing(
uint32_t protocol_no,
nfc_app_cb app_cb);
int
nfc_pkt_trace_invoke_notif_to_sbscribers(
uint32_t protocol_no,
char *pkt,
uint32_t pkt_size,
char *pkt_print_buffer);
#endif /* __TCPIP_NOTIF_C */