1 // Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
2 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE-xwalk file.
6 #ifndef WIDGET_MANIFEST_PARSER_WIDGET_MANIFEST_PARSER_H_
7 #define WIDGET_MANIFEST_PARSER_WIDGET_MANIFEST_PARSER_H_
15 // Represents a manifest data
24 unsigned int privilege_count;
25 char** privilege_list;
28 // Reads manifest from specified file and filles specified data argument
29 // with read data. Returns true on success or false otherwise. If the error
30 // parameter is specified, it is also filled with proper message.
31 bool ParseManifest(const char* path,
32 const ManifestData** data, const char** error);
34 // Releses the data and the error returned by ParseManifest.
35 void ReleaseData(const ManifestData* data, const char* error);
41 #endif // WIDGET_MANIFEST_PARSER_WIDGET_MANIFEST_PARSER_H_