MCPcopy Create free account
hub / github.com/corosync/corosync / icmap_tt_to_qbtt

Function icmap_tt_to_qbtt

exec/icmap.c:127–148  ·  view source on GitHub ↗

* Function implementation */

Source from the content-addressed store, hash-verified

125 * Function implementation
126 */
127int32_t icmap_tt_to_qbtt(int32_t track_type)
128{
129 int32_t res = 0;
130
131 if (track_type & ICMAP_TRACK_DELETE) {
132 res |= QB_MAP_NOTIFY_DELETED;
133 }
134
135 if (track_type & ICMAP_TRACK_MODIFY) {
136 res |= QB_MAP_NOTIFY_REPLACED;
137 }
138
139 if (track_type & ICMAP_TRACK_ADD) {
140 res |= QB_MAP_NOTIFY_INSERTED;
141 }
142
143 if (track_type & ICMAP_TRACK_PREFIX) {
144 res |= QB_MAP_NOTIFY_RECURSIVE;
145 }
146
147 return (res);
148}
149
150int32_t icmap_qbtt_to_tt(int32_t track_type)
151{

Callers 4

icmap_track_addFunction · 0.85
icmap_track_deleteFunction · 0.85
stats_map_track_addFunction · 0.85
stats_map_track_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected