2015-10-04 18:28:44 +00:00
|
|
|
// Copyright 2015 Alexander Palaistras. All rights reserved.
|
|
|
|
// Use of this source code is governed by the MIT license that can be found in
|
|
|
|
// the LICENSE file.
|
|
|
|
|
2015-09-20 00:16:43 +00:00
|
|
|
#ifndef VALUE_H
|
|
|
|
#define VALUE_H
|
|
|
|
|
2015-09-26 19:40:41 +00:00
|
|
|
void *value_create_long(long int value);
|
|
|
|
void *value_create_double(double value);
|
|
|
|
void *value_create_bool(bool value);
|
|
|
|
void *value_create_string(char *value);
|
2015-10-01 21:57:17 +00:00
|
|
|
void *value_create_array(unsigned int size);
|
|
|
|
void value_array_set_index(void *arr, unsigned long idx, void *val);
|
|
|
|
void value_array_set_key(void *arr, const char *key, void *val);
|
2015-10-17 15:00:16 +00:00
|
|
|
void *value_create_object();
|
|
|
|
void value_object_add_property(void *obj, const char *key, void *val);
|
2015-09-20 00:16:43 +00:00
|
|
|
void value_destroy(void *zvalptr);
|
|
|
|
|
|
|
|
#endif
|