Add serialization for syscall args (XCC)
[akaros.git] / user / parlib / include / serialize.h
1 /* Copyright (c) 2015 Google Inc., All Rights Reserved.
2  * Kevin Klues <klueska@google.com>
3  * See LICENSE for details. */
4
5 #ifndef PARLIB_SERIALIZE_H
6 #define PARLIB_SERIALIZE_H
7
8 #include <stddef.h>
9
10 struct serialized_data {
11         size_t len;
12         char buf[];
13 };
14 extern struct serialized_data* serialize_argv_envp(char* const* argv,
15                                                    char* const* envp);
16 extern void free_serialized_data(struct serialized_data* sd);
17
18 #endif // PARLIB_SERIALIZE_H