summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMain/Main.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibMain/Main.h')
-rw-r--r--Userland/Libraries/LibMain/Main.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Userland/Libraries/LibMain/Main.h b/Userland/Libraries/LibMain/Main.h
new file mode 100644
index 0000000000..ee8e85b3cb
--- /dev/null
+++ b/Userland/Libraries/LibMain/Main.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/Error.h>
+
+namespace Main {
+
+struct Arguments {
+ int argc {};
+ char** argv {};
+ Span<StringView> arguments;
+};
+
+}
+
+ErrorOr<int> serenity_main(Main::Arguments);