-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathkr_helper.h
44 lines (37 loc) · 1.08 KB
/
kr_helper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __kr_helper_h
#define __kr_helper_h
#include "logging.h"
#include "kraken_api.h"
#include "url.h"
/*!
* \file kr_helper.h
* \brief Helper functions for private API calls.
* This file contains helper functions used by private trading and user functions.
*
* Currently switch_opt(struct kraken_api **kr_api) is used by both parts; the private trading and user functions.
*
* \file kr_helper.c
* \var u8_opt_count
* \brief API wide variable
*
* This variable is the by every functions that corresponds
* to an API call that accept optionals.
*
* */
/*!
* \brief Set the optional arguments in API calls
*
* \param **kr_api Initialized API structure.
*
* This functions checks if options flags are set. Possible options are defined
* in #options_listen_table[] in kraken_api.c
*
* The functions sets the appropriate content so the s_data variable. When
* no content was found, the flag will be set to FALSE again.
*
* After this procedure the function calls itself again till all possible
* options were checked.
*
* */
void switch_opt(struct kraken_api **kr_api);
#endif