+static void print_version(void)
+{
+ printf("pb-event (" PACKAGE_NAME ") " PACKAGE_VERSION "\n");
+}
+
+static void print_usage(void)
+{
+ print_version();
+ printf(
+"Usage: pb-event [-h, --help] [-V, --version]\n"
+"\n"
+" Reads a single petitboot user event on stdin and forwards it to the\n"
+" petitboot discover server pb-discover. User events must have the\n"
+" following format:\n"
+"\n"
+" (add|remove)@device-id\\0[name=value\\0][image=value\\0][args=value\\0]\n"
+"\n"
+"Examples:\n"
+"\n"
+" printf 'add@/net/eth0\\0name=netboot\\0image=tftp://192.168.1.10/vmlinux\\0args=root=/dev/nfs nfsroot=192.168.1.10:/target\\0' | pb-event\n"
+" printf 'remove@/net/eth0\\0' | pb-event\n"
+"\n");
+}
+
+int main(int argc, __attribute__((unused)) char *argv[])