chiark / gitweb /
sd-netlink: make NLType internal
[elogind.git] / src / libsystemd / sd-netlink / netlink-types.h
index 1bb1b21da948cfb93c8a9cf64c429268cdf31b35..cb6a78fb3ebd38f28fff397dd219147361246a4c 100644 (file)
@@ -58,13 +58,10 @@ struct NLTypeSystem {
         const NLType *types;
 };
 
-struct NLType {
-        uint16_t type;
-        size_t size;
-        const NLTypeSystem *type_system;
-        const NLTypeSystemUnion *type_system_union;
-};
-
+uint16_t type_get_type(const NLType *type);
+size_t type_get_size(const NLType *type);
+void type_get_type_system(const NLType *type, const NLTypeSystem **ret);
+void type_get_type_system_union(const NLType *type, const NLTypeSystemUnion **ret);
 int type_system_get_type(const NLTypeSystem *type_system, const NLType **ret, uint16_t type);
 int type_system_get_type_system(const NLTypeSystem *type_system, const NLTypeSystem **ret, uint16_t type);
 int type_system_get_type_system_union(const NLTypeSystem *type_system, const NLTypeSystemUnion **ret, uint16_t type);