summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2006-12-19 20:28:12 +0100
committerMichael Brown2006-12-19 20:28:12 +0100
commit1bc3514bd83ec5e1407afa059dd52c0118e73b41 (patch)
treea56c88a1fd20a1b0e09817b0e90d30c0049e0767 /src/include
parentUse common symbols to avoid dragging in getopt.o unless a getopt-using (diff)
downloadipxe-1bc3514bd83ec5e1407afa059dd52c0118e73b41.tar.gz
ipxe-1bc3514bd83ec5e1407afa059dd52c0118e73b41.tar.xz
ipxe-1bc3514bd83ec5e1407afa059dd52c0118e73b41.zip
Start of generic editable string support
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/editstring.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gpxe/editstring.h b/src/include/gpxe/editstring.h
new file mode 100644
index 000000000..7dc96d9aa
--- /dev/null
+++ b/src/include/gpxe/editstring.h
@@ -0,0 +1,22 @@
+#ifndef _EDITSTRING_H
+#define _EDITSTRING_H
+
+/** @file
+ *
+ * Editable strings
+ *
+ */
+
+/** An editable string */
+struct edit_string {
+ /** Buffer for string */
+ char *buf;
+ /** Size of buffer (including terminating NUL) */
+ size_t len;
+ /** Cursor position */
+ unsigned int cursor;
+};
+
+extern int edit_string ( struct edit_string *string, int key );
+
+#endif /* _EDITSTRING_H */