summaryrefslogtreecommitdiff
path: root/lib9p/proto.gen
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-23 00:19:29 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-23 03:05:06 -0600
commit057f17b3f22b8b0112f87b6c3128df6925b8f27a (patch)
treeaf932f1e559a4ae455c76975ccb1c1cccb01946c /lib9p/proto.gen
parent1e49f931a86e54415ba36fc2bfe799d616936080 (diff)
lib9p: start to split idl.gen apart as proto.gen
Diffstat (limited to 'lib9p/proto.gen')
-rwxr-xr-xlib9p/proto.gen15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib9p/proto.gen b/lib9p/proto.gen
new file mode 100755
index 0000000..60f1347
--- /dev/null
+++ b/lib9p/proto.gen
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+# lib9p/proto.gen - Generate C marshalers/unmarshalers for .9p files
+# defining 9P protocol variants.
+#
+# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+import os.path
+import sys
+
+sys.path.insert(0, os.path.normpath(os.path.join(__file__, "..")))
+import protogen # pylint: disable=wrong-import-position
+
+if __name__ == "__main__":
+ protogen.main()