summaryrefslogtreecommitdiff
path: root/upb/bindings/lua/upb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-06-26 20:24:32 -0700
committerJosh Haberman <jhaberman@gmail.com>2014-06-26 20:24:32 -0700
commit2d10fa33071d52d7a35ce3b13bc459cd16a0aa33 (patch)
treebf47d38e2e1cc8ddb4711b23b26e7fd10742e07d /upb/bindings/lua/upb
parent7d565f1e7a0f107506d3cf31ef2e33e22a504d2b (diff)
Sync from internal Google development.
Diffstat (limited to 'upb/bindings/lua/upb')
-rw-r--r--upb/bindings/lua/upb/descriptor.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/upb/bindings/lua/upb/descriptor.c b/upb/bindings/lua/upb/descriptor.c
new file mode 100644
index 0000000..9915e11
--- /dev/null
+++ b/upb/bindings/lua/upb/descriptor.c
@@ -0,0 +1,20 @@
+/*
+ * upb - a minimalist implementation of protocol buffers.
+ *
+ * Copyright (c) 2009 Google Inc. See LICENSE for details.
+ * Author: Josh Haberman <jhaberman@gmail.com>
+ *
+ * A Lua extension for upb/descriptor.
+ */
+
+#include "upb/bindings/lua/upb.h"
+
+static const struct luaL_Reg toplevel_m[] = {
+ {NULL, NULL}
+};
+
+int luaopen_upb_descriptor(lua_State *L) {
+ lupb_newlib(L, "upb.descriptor", toplevel_m);
+
+ return 1; // Return package table.
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback