blob: fa3814fdabf8eb6bfbad47a4f38f0c2d638eb348 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/zx/handle.h>
#include <lib/zx/job.h>
#include <lib/zx/object.h>
namespace zx {
class profile final : public object<profile> {
static constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_PROFILE;
constexpr profile() = default;
explicit profile(zx_handle_t value) : object(value) {}
explicit profile(handle&& h) : object(h.release()) {}
profile(profile&& other) : object(other.release()) {}
profile& operator=(profile&& other) {
return *this;
static zx_status_t create(const job& job, uint32_t options, const zx_profile_info_t* info,
profile* result);
using unowned_profile = unowned<profile>;
} // namespace zx
#endif // LIB_ZX_PROFILE_H_