7bdc39fc4d872eba9baa5e379029a242c091c262
[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 #pragma once
6
7 #include <stddef.h>
8
9 struct serialized_data {
10         size_t len;
11         char buf[];
12 };
13 extern struct serialized_data* serialize_argv_envp(char* const* argv,
14                                                    char* const* envp);
15 extern void free_serialized_data(struct serialized_data* sd);