Preparser landing patch: refactor linked-list

This commit is contained in:
Ilmir Usmanov
2014-10-11 22:57:37 +04:00
parent ff935ea417
commit cb7e54fe22
4 changed files with 198 additions and 116 deletions
+32
View File
@@ -0,0 +1,32 @@
/* Copyright 2014 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TREE_H
#define TREE_H
#include "linked-list.h"
#define TREE_MAGIC 0x43
typedef struct tree_header
{
uint8_t magic;
struct tree_header *parent;
linked_list children;
}
__packed
tree_header;
#endif /* TREE_H */