ref: b7cb7cf9368d4139a02b8c37f1d87835e526c5e2
parent: 0e33735b9de23c82cb5a34fab3c61aa7e7ea0ea9
author: rrt <rrt>
date: Tue Jan 16 21:38:12 EST 2007
Add Lua skeleton files.
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,6 +12,7 @@
bin_SCRIPTS = libst-config
lib_LTLIBRARIES = libst.la
include_HEADERS = st.h stconfig.h ststdint.h
+dist_pkgdata_DATA = skeleff.lua skelform.lua
formats = 8svx.c adpcm.c adpcm.h adpcms.c adpcms.h aiff.c au.c auto.c avr.c \
cdr.c cvsd.c cvsdfilt.h dat.c flac.c g711.c g711.h g721.c \
--- /dev/null
+++ b/src/skeleff.lua
@@ -1,0 +1,7 @@
+ibuf = ...
+print(ibuf)
+for i = 1, #ibuf do
+ print(ibuf[i])
+end
+
+return {} -- return an empty result
--- /dev/null
+++ b/src/skelform.lua
@@ -1,0 +1,23 @@
+return
+{
+ rea =
+ function (fh, ibuf)
+ print "read"
+ print(fh, ibuf)
+ return 0
+ end,
+
+ writ =
+ function (fh, obuf)
+ print "write"
+ print(fh, obuf)
+ return 0
+ end,
+
+ see =
+ function (fh, offset)
+ print "seek"
+ print(fh, offset)
+ return false
+ end,
+}