summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-06-25 16:27:36 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-06-25 16:27:36 -0500
commite9a3562d6a5cf88e6034570ab791e91e63ffb14a (patch)
tree8f3d0727b431f81d6f8b70195ddd8d37b6c3e8e6 /src/include
parent8085c7634979f38c1b152d0a35b98c2447ce497a (diff)
downloadtalos-hostboot-e9a3562d6a5cf88e6034570ab791e91e63ffb14a.tar.gz
talos-hostboot-e9a3562d6a5cf88e6034570ab791e91e63ffb14a.zip
Add shell of VFS for registering and resolving message queue names.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/string.h2
-rw-r--r--src/include/sys/msg.h4
-rw-r--r--src/include/sys/vfs.h26
3 files changed, 30 insertions, 2 deletions
diff --git a/src/include/string.h b/src/include/string.h
index a2b704067..30c878d65 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -9,6 +9,8 @@ extern "C"
#endif
void* memset(void* s, int c, size_t n);
+
+ char* strcpy(char* d, const char* s);
int strcmp(const char* s1, const char* s2);
#ifdef __cplusplus
diff --git a/src/include/sys/msg.h b/src/include/sys/msg.h
index ca5dab7e6..d7c42f4e3 100644
--- a/src/include/sys/msg.h
+++ b/src/include/sys/msg.h
@@ -22,8 +22,8 @@ struct msg_t
// Message queue interfaces.
msg_q_t msg_q_create();
int msg_q_destroy();
-int msg_q_register(msg_q_t q, char* name);
-msg_q_t msg_q_resolve(char* name);
+int msg_q_register(msg_q_t q, const char* name);
+msg_q_t msg_q_resolve(const char* name);
// Message interfaces.
__attribute__((always_inline))
diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h
new file mode 100644
index 000000000..579b9ba34
--- /dev/null
+++ b/src/include/sys/vfs.h
@@ -0,0 +1,26 @@
+#ifndef __SYS_VFS_H
+#define __SYS_VFS_H
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern const char* VFS_ROOT;
+extern const char* VFS_ROOT_BIN;
+extern const char* VFS_ROOT_DATA;
+extern const char* VFS_ROOT_MSG;
+
+enum VfsMessages
+{
+ VFS_MSG_REGISTER_MSGQ,
+ VFS_MSG_RESOLVE_MSGQ,
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
OpenPOWER on IntegriCloud