1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file contains declarations of public XPC functions used in the sandbox.
6// This file is used with tools/generate_stubs for creating a dynamic library
7// loader.
8
9// XPC object management.
10void xpc_release(xpc_object_t object);
11
12// Dictionary manipulation.
13xpc_object_t xpc_dictionary_create(const char* const *keys, const xpc_object_t* values, size_t count);
14const char* xpc_dictionary_get_string(xpc_object_t dictionary, const char* key);
15uint64_t xpc_dictionary_get_uint64(xpc_object_t dictionary, const char* key);
16void xpc_dictionary_set_uint64(xpc_object_t dictionary, const char* key, uint64_t value);
17int64_t xpc_dictionary_get_int64(xpc_object_t dictionary, const char* key);
18void xpc_dictionary_set_int64(xpc_object_t dictionary, const char* key, int64_t value);
19bool xpc_dictionary_get_bool(xpc_object_t dictionary, const char* key);
20xpc_object_t xpc_dictionary_create_reply(xpc_object_t request);
21