#include <talloc/talloc.h>
#include <list/list.h>
#include <log/log.h>
-#include <pb-protocol/pb-protocol.h>
+#include <types/types.h>
#include <system/system.h>
#include "device-handler.h"
#include "log/log.h"
#include "talloc/talloc.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser-conf.h"
#include "parser-utils.h"
#include "paths.h"
#include "log/log.h"
#include "talloc/talloc.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser-conf.h"
#include "parser-utils.h"
#include "paths.h"
#include <log/log.h>
#include <talloc/talloc.h>
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "event.h"
#include "udev.h"
#include "device-handler.h"
#ifndef PARSER_UTILS_H
#define PARSER_UTILS_H
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser.h"
#define streq(a,b) (!strcasecmp((a),(b)))
#include <stdlib.h>
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include <log/log.h>
#include "device-handler.h"
#include "log/log.h"
#include "talloc/talloc.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "parser-conf.h"
#include "parser-utils.h"
#include "paths.h"
waiter/waiter.h \
pb-protocol/pb-protocol.c \
pb-protocol/pb-protocol.h \
+ types/types.h \
talloc/talloc.c \
talloc/talloc.h \
system/system.c \
#include <stdio.h>
#include <list/list.h>
+#include <types/types.h>
#define PB_SOCKET_PATH "/tmp/petitboot.ui"
char payload[];
};
-struct device {
- char *id;
- char *name;
- char *description;
- char *icon_file;
-
- struct list boot_options;
-
- int n_options;
- void *ui_info;
-};
-
-struct boot_option {
- char *id;
- char *name;
- char *description;
- char *icon_file;
- char *boot_image_file;
- char *initrd_file;
- char *boot_args;
-
- struct list_item list;
-
- void *ui_info;
-};
-
void pb_protocol_dump_device(const struct device *dev, const char *text,
FILE *stream);
int pb_protocol_device_len(const struct device *dev);
--- /dev/null
+#ifndef _TYPES_H
+#define _TYPES_H
+
+#include <list/list.h>
+
+struct device {
+ char *id;
+ char *name;
+ char *description;
+ char *icon_file;
+
+ int n_options;
+ struct list boot_options;
+
+ void *ui_info;
+};
+
+struct boot_option {
+ char *id;
+ char *name;
+ char *description;
+ char *icon_file;
+ char *boot_image_file;
+ char *initrd_file;
+ char *boot_args;
+
+ struct list_item list;
+
+ void *ui_info;
+};
+
+#endif /* _TYPES_H */
#include <unistd.h>
#include <log/log.h>
-#include "pb-protocol/pb-protocol.h"
+#include <types/types.h>
#include <talloc/talloc.h>
#include "discover/device-handler.h"
#ifndef _DISCOVER_CLIENT_H
#define _DISCOVER_CLIENT_H
-#include <pb-protocol/pb-protocol.h>
+#include <types/types.h>
struct discover_client;
#if !defined(_PB_UI_SYSTEM_H)
#define _PB_UI_SYSTEM_H
-#include "pb-protocol/pb-protocol.h"
+#include <stdint.h>
+
#include "system/system.h"
+#include "types/types.h"
#include "ui/common/timer.h"
#include <signal.h>
#include <linux/input.h> /* This must be included before ncurses.h */
#include <form.h>
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "ui/common/ui-system.h"
#include "nc-scr.h"
#include <menu.h>
#include "log/log.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "nc-scr.h"
struct pmenu;
#include <assert.h>
#include <string.h>
+#include <pb-protocol/pb-protocol.h>
+
#include "pbt-client.h"
#include "log/log.h"
#define _PBT_MENU_H
#include "list/list.h"
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
#include "pbt-scr.h"