forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/security/selinux/ss/symtab.h
....@@ -13,12 +13,15 @@
1313 #include "hashtab.h"
1414
1515 struct symtab {
16
- struct hashtab *table; /* hash table (keyed on a string) */
16
+ struct hashtab table; /* hash table (keyed on a string) */
1717 u32 nprim; /* number of primary names in table */
1818 };
1919
2020 int symtab_init(struct symtab *s, unsigned int size);
2121
22
+int symtab_insert(struct symtab *s, char *name, void *datum);
23
+void *symtab_search(struct symtab *s, const char *name);
24
+
2225 #endif /* _SS_SYMTAB_H_ */
2326
2427