2021-02-17 00:08:58 +01:00
|
|
|
/* -*- compile-command: "cd ../wasm && make main.html -j3"; -*- */
|
|
|
|
/*
|
|
|
|
* Copyright 2021 by Eric House (xwords@eehouse.org). All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WASMASM_H_
|
|
|
|
#define _WASMASM_H_
|
|
|
|
|
2021-02-20 03:06:11 +01:00
|
|
|
#include <stdbool.h>
|
2021-02-23 19:49:09 +01:00
|
|
|
#include <unistd.h>
|
2021-02-20 03:06:11 +01:00
|
|
|
|
2021-02-23 20:16:15 +01:00
|
|
|
typedef void (*StringProc)(void* closure, const char* str);
|
|
|
|
|
2021-02-17 00:08:58 +01:00
|
|
|
void set_stored_value(const char* key, const char* val);
|
2021-02-23 19:49:09 +01:00
|
|
|
bool get_stored_value(const char* key, char out[], size_t* len);
|
2021-02-19 22:18:53 +01:00
|
|
|
void remove_stored_value(const char* key);
|
2021-02-20 03:06:11 +01:00
|
|
|
bool have_stored_value(const char* key);
|
2021-02-17 00:08:58 +01:00
|
|
|
|
|
|
|
#endif
|