|
@@ -3,7 +3,7 @@
|
|
|
* namevalue.h - name value structure handling
|
|
* namevalue.h - name value structure handling
|
|
|
*
|
|
*
|
|
|
* Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
|
|
* Copyright © 1994,1995 Ian Jackson <ian@chiark.greenend.org.uk>
|
|
|
- * Copyright © 2009 Guillem Jover <guillem@debian.org>
|
|
|
|
|
|
|
+ * Copyright © 2009-2010 Guillem Jover <guillem@debian.org>
|
|
|
*
|
|
*
|
|
|
* This is free software; you can redistribute it and/or modify
|
|
* This is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -35,6 +35,9 @@ struct namevalue {
|
|
|
#define NAMEVALUE_DEF(n, v) \
|
|
#define NAMEVALUE_DEF(n, v) \
|
|
|
[v] = { .name = n, .value = v, .length = sizeof(n) - 1 }
|
|
[v] = { .name = n, .value = v, .length = sizeof(n) - 1 }
|
|
|
|
|
|
|
|
|
|
+const struct namevalue *namevalue_find_by_name(const struct namevalue *head,
|
|
|
|
|
+ const char *str);
|
|
|
|
|
+
|
|
|
DPKG_END_DECLS
|
|
DPKG_END_DECLS
|
|
|
|
|
|
|
|
#endif /* LIBDPKG_NAMEVALUE_H */
|
|
#endif /* LIBDPKG_NAMEVALUE_H */
|