1 | #ifndef _telemetry_notification_user_ |
2 | #define _telemetry_notification_user_ |
3 | |
4 | /* Module telemetry_notification */ |
5 | |
6 | #include <string.h> |
7 | #include <mach/ndr.h> |
8 | #include <mach/boolean.h> |
9 | #include <mach/kern_return.h> |
10 | #include <mach/notify.h> |
11 | #include <mach/mach_types.h> |
12 | #include <mach/message.h> |
13 | #include <mach/mig_errors.h> |
14 | #include <mach/port.h> |
15 | |
16 | /* BEGIN MIG_STRNCPY_ZEROFILL CODE */ |
17 | |
18 | #if defined(__has_include) |
19 | #if __has_include(<mach/mig_strncpy_zerofill_support.h>) |
20 | #ifndef USING_MIG_STRNCPY_ZEROFILL |
21 | #define USING_MIG_STRNCPY_ZEROFILL |
22 | #endif |
23 | #ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
24 | #define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ |
25 | #ifdef __cplusplus |
26 | extern "C" { |
27 | #endif |
28 | extern int mig_strncpy_zerofill(char *dest, const char *src, int len) __attribute__((weak_import)); |
29 | #ifdef __cplusplus |
30 | } |
31 | #endif |
32 | #endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */ |
33 | #endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */ |
34 | #endif /* __has_include */ |
35 | |
36 | /* END MIG_STRNCPY_ZEROFILL CODE */ |
37 | |
38 | #if (__MigKernelSpecificCode) || (_MIG_KERNEL_SPECIFIC_CODE_) |
39 | #include <kern/ipc_mig.h> |
40 | #endif /* __MigKernelSpecificCode */ |
41 | |
42 | #ifdef AUTOTEST |
43 | #ifndef FUNCTION_PTR_T |
44 | #define FUNCTION_PTR_T |
45 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); |
46 | typedef struct { |
47 | char *name; |
48 | function_ptr_t function; |
49 | } function_table_entry; |
50 | typedef function_table_entry *function_table_t; |
51 | #endif /* FUNCTION_PTR_T */ |
52 | #endif /* AUTOTEST */ |
53 | |
54 | #ifndef telemetry_notification_MSG_COUNT |
55 | #define telemetry_notification_MSG_COUNT 1 |
56 | #endif /* telemetry_notification_MSG_COUNT */ |
57 | |
58 | #include <mach/std_types.h> |
59 | #include <mach/mig.h> |
60 | #include <mach/mig.h> |
61 | #include <mach/mach_types.h> |
62 | |
63 | #ifdef __BeforeMigUserHeader |
64 | __BeforeMigUserHeader |
65 | #endif /* __BeforeMigUserHeader */ |
66 | |
67 | #include <sys/cdefs.h> |
68 | __BEGIN_DECLS |
69 | |
70 | |
71 | /* SimpleRoutine telemetry_notification */ |
72 | #ifdef mig_external |
73 | mig_external |
74 | #else |
75 | extern |
76 | #endif /* mig_external */ |
77 | kern_return_t telemetry_notification |
78 | ( |
79 | mach_port_t telemetry_port, |
80 | uint32_t flags |
81 | ); |
82 | |
83 | __END_DECLS |
84 | |
85 | /********************** Caution **************************/ |
86 | /* The following data types should be used to calculate */ |
87 | /* maximum message sizes only. The actual message may be */ |
88 | /* smaller, and the position of the arguments within the */ |
89 | /* message layout may vary from what is presented here. */ |
90 | /* For example, if any of the arguments are variable- */ |
91 | /* sized, and less than the maximum is sent, the data */ |
92 | /* will be packed tight in the actual message to reduce */ |
93 | /* the presence of holes. */ |
94 | /********************** Caution **************************/ |
95 | |
96 | /* typedefs for all requests */ |
97 | |
98 | #ifndef __Request__telemetry_notification_subsystem__defined |
99 | #define __Request__telemetry_notification_subsystem__defined |
100 | |
101 | #ifdef __MigPackStructs |
102 | #pragma pack(4) |
103 | #endif |
104 | typedef struct { |
105 | mach_msg_header_t Head; |
106 | NDR_record_t NDR; |
107 | uint32_t flags; |
108 | } __Request__telemetry_notification_t __attribute__((unused)); |
109 | #ifdef __MigPackStructs |
110 | #pragma pack() |
111 | #endif |
112 | #endif /* !__Request__telemetry_notification_subsystem__defined */ |
113 | |
114 | /* union of all requests */ |
115 | |
116 | #ifndef __RequestUnion__telemetry_notification_subsystem__defined |
117 | #define __RequestUnion__telemetry_notification_subsystem__defined |
118 | union __RequestUnion__telemetry_notification_subsystem { |
119 | __Request__telemetry_notification_t Request_telemetry_notification; |
120 | }; |
121 | #endif /* !__RequestUnion__telemetry_notification_subsystem__defined */ |
122 | /* typedefs for all replies */ |
123 | |
124 | #ifndef __Reply__telemetry_notification_subsystem__defined |
125 | #define __Reply__telemetry_notification_subsystem__defined |
126 | |
127 | #ifdef __MigPackStructs |
128 | #pragma pack(4) |
129 | #endif |
130 | typedef struct { |
131 | mach_msg_header_t Head; |
132 | NDR_record_t NDR; |
133 | kern_return_t RetCode; |
134 | } __Reply__telemetry_notification_t __attribute__((unused)); |
135 | #ifdef __MigPackStructs |
136 | #pragma pack() |
137 | #endif |
138 | #endif /* !__Reply__telemetry_notification_subsystem__defined */ |
139 | |
140 | /* union of all replies */ |
141 | |
142 | #ifndef __ReplyUnion__telemetry_notification_subsystem__defined |
143 | #define __ReplyUnion__telemetry_notification_subsystem__defined |
144 | union __ReplyUnion__telemetry_notification_subsystem { |
145 | __Reply__telemetry_notification_t Reply_telemetry_notification; |
146 | }; |
147 | #endif /* !__RequestUnion__telemetry_notification_subsystem__defined */ |
148 | |
149 | #ifndef subsystem_to_name_map_telemetry_notification |
150 | #define subsystem_to_name_map_telemetry_notification \ |
151 | { "telemetry_notification", 5100 } |
152 | #endif |
153 | |
154 | #ifdef __AfterMigUserHeader |
155 | __AfterMigUserHeader |
156 | #endif /* __AfterMigUserHeader */ |
157 | |
158 | #endif /* _telemetry_notification_user_ */ |
159 | |