Skip to content

Commit 7110715

Browse files
committed
back-ported missing functions
1 parent adb8c93 commit 7110715

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/graph-algo/admitted.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,16 @@ struct admitted_traffic *get_admitted_struct(struct admitted_traffic *admitted,
103103
return &admitted[index];
104104
}
105105

106+
// Get the size of an admitted traffic struct
107+
static inline
108+
uint16_t get_admitted_struct_size() {
109+
return sizeof(struct admitted_traffic);
110+
}
111+
112+
// Get the number of edge admitted
113+
static inline
114+
uint16_t get_num_admitted(struct admitted_traffic *admitted) {
115+
return admitted->size;
116+
}
117+
106118
#endif /* ADMITTED_H_ */

0 commit comments

Comments
 (0)