n-link/web/web-libusb/libnspire-sys/libnspire/src/api/os.h
2020-11-22 16:03:21 -05:00

28 lines
924 B
C

/*
This file is part of libnspire.
libnspire 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 3 of the License, or
(at your option) any later version.
libnspire 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 libnspire. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef NSP_OS_H
#define NSP_OS_H
#include <string.h>
#include "handle.h"
typedef void (*nspire_callback)(size_t, void*);
int nspire_os_send(nspire_handle_t *handle, void* data, size_t size, nspire_callback cb, void *cb_data);
#endif