Loading...
Searching...
No Matches
as_result.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2018 Aerospike, Inc.
3 *
4 * Portions may be licensed to Aerospike, Inc. under one or more contributor
5 * license agreements.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 * use this file except in compliance with the License. You may obtain a copy of
9 * the License at http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17#pragma once
18
19#include <aerospike/as_std.h>
20#include <aerospike/as_val.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/******************************************************************************
27 * TYPES
28 ******************************************************************************/
29
30typedef struct as_result_s {
32 uint32_t count;
35} as_result;
36
37/******************************************************************************
38 * FUNCTIONS
39 ******************************************************************************/
40
43
45
47
48// These functions new an as_result object - consume the as_val
51
52// These functions init an as_result object - consume the as_val
55
56// retrieves the value associated with success or failure
58
61
62#ifdef __cplusplus
63} // end extern "C"
64#endif
as_result * as_failure_init(as_result *, as_val *)
as_result * as_result_new(void)
as_val * as_result_value(as_result *)
as_result * as_success_new(as_val *)
as_result * as_failure_new(as_val *)
as_result * as_result_init(as_result *r)
as_result * as_result_setsuccess(as_result *r, as_val *v)
void as_result_destroy(as_result *)
as_result * as_result_reserve(as_result *r)
as_result * as_success_init(as_result *, as_val *)
as_result * as_result_setfailure(as_result *r, as_val *v)
uint32_t count
Definition as_result.h:32
bool is_success
Definition as_result.h:34
as_val * value
Definition as_result.h:31
bool is_malloc
Definition as_result.h:33