Global Lender
A Pebble app for finding new and interesting loans on kiva.org
data-processor.h
Go to the documentation of this file.
1 /*
2 Data Processor v1.1
3 A Pebble library for extracting elements from a delimited string.
4 http://smallstoneapps.github.io/data-processor/
5 ----------------------
6 The MIT License (MIT)
7 Copyright © 2014 Matthew Tole
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 THE SOFTWARE.
23 --------------------
24 data-processor.h
25 */
26 
27 #pragma once
28 
29 #include <pebble.h>
30 
31 #define DATA_PROCESSOR_VERSION_MAJOR 1
32 #define DATA_PROCESSOR_VERSION_MINOR 1
33 
35 
36 void data_processor_init(char* data, char delim);
37 ProcessingState* data_processor_create(char* data, char delim);
38 
41 
43 
44 uint16_t data_processor_count(ProcessingState* state);
void data_processor_deinit()
Definition: data-processor.c:60
bool data_processor_get_bool(ProcessingState *state)
Definition: data-processor.c:108
void data_processor_init(char *data, char delim)
Definition: data-processor.c:38
int data_processor_get_int(ProcessingState *state)
Definition: data-processor.c:118
ProcessingState * data_processor_get_global(void)
Definition: data-processor.c:65
Definition: data-processor.c:30
ProcessingState * data_processor_create(char *data, char delim)
Definition: data-processor.c:43
void data_processor_destroy(ProcessingState *state)
Definition: data-processor.c:53
uint16_t data_processor_count(ProcessingState *state)
Definition: data-processor.c:69
char * data_processor_get_string(ProcessingState *state)
Definition: data-processor.c:88