summaryrefslogtreecommitdiffstats
path: root/security/sandbox/chromium/sandbox/win/src/ipc_args.h
blob: 58b7507deeb0de89353815cd983583a9347cbb01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_WIN_SRC_IPC_ARGS_H_
#define SANDBOX_WIN_SRC_IPC_ARGS_H_

#include "sandbox/win/src/crosscall_params.h"
#include "sandbox/win/src/crosscall_server.h"

namespace sandbox {

// Releases memory allocated for IPC arguments.
void ReleaseArgs(const IPCParams* ipc_params, void* args[kMaxIpcParams]);

// Fills up the list of arguments (args and ipc_params) for an IPC call.
// Call ReleaseArgs on |ipc_params| and |args| after calling this.
bool GetArgs(CrossCallParamsEx* params,
             IPCParams* ipc_params,
             void* args[kMaxIpcParams]);

}  // namespace sandbox

#endif  // SANDBOX_WIN_SRC_IPC_ARGS_H_