summaryrefslogtreecommitdiffstats
path: root/src/guestfs_protocol.x
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-04 16:38:28 +0100
committerRichard Jones <rjones@redhat.com>2009-04-04 16:38:28 +0100
commit843514eef9dc6d04d71e031ba9ddb16e2beb9a04 (patch)
tree8318edc62b21e5823cfd5c4171d8a974571bc90d /src/guestfs_protocol.x
parenteb50cde931893e54c5aa9816cbca49e36891be8f (diff)
downloadlibguestfs-843514eef9dc6d04d71e031ba9ddb16e2beb9a04.tar.gz
libguestfs-843514eef9dc6d04d71e031ba9ddb16e2beb9a04.tar.xz
libguestfs-843514eef9dc6d04d71e031ba9ddb16e2beb9a04.zip
Implement RString and RStringList return types.
- implement 'll' command. - outlines for 'ls' and 'cat' commands.
Diffstat (limited to 'src/guestfs_protocol.x')
-rw-r--r--src/guestfs_protocol.x35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/guestfs_protocol.x b/src/guestfs_protocol.x
index 106bb606..df3e9368 100644
--- a/src/guestfs_protocol.x
+++ b/src/guestfs_protocol.x
@@ -19,6 +19,38 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+typedef string str<>;
+
+/* guestfs_cat */
+
+struct guestfs_cat_args {
+ string path<>;
+};
+
+struct guestfs_cat_ret {
+ string content<>;
+};
+
+/* guestfs_ll */
+
+struct guestfs_ll_args {
+ string directory<>;
+};
+
+struct guestfs_ll_ret {
+ string listing<>;
+};
+
+/* guestfs_ls */
+
+struct guestfs_ls_args {
+ string directory<>;
+};
+
+struct guestfs_ls_ret {
+ str listing<>;
+};
+
/* guestfs_mount */
struct guestfs_mount_args {
@@ -35,6 +67,9 @@ struct guestfs_touch_args {
};
enum guestfs_procedure {
+ GUESTFS_PROC_CAT = 4,
+ GUESTFS_PROC_LL = 5,
+ GUESTFS_PROC_LS = 6,
GUESTFS_PROC_MOUNT = 1,
GUESTFS_PROC_SYNC = 2,
GUESTFS_PROC_TOUCH = 3,