aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-02-26 10:19:10 -0500
committerAntony Kellermann2018-02-26 10:19:10 -0500
commitef7e041ff8170be8ed837fe8ba4378eed687463a (patch)
treebf502b9bfa9a5f2f2b00c4db7efde826cecc567c /api.h
parent3e36a4fefbdfa9c3d14c4ebf0149a59df5461b2f (diff)
downloadaur-ef7e041ff8170be8ed837fe8ba4378eed687463a.tar.gz
Moved string manipulation functions to new c/h files, added them to Makefile, included header in other files
Diffstat (limited to 'api.h')
-rw-r--r--api.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/api.h b/api.h
index ebb3fa976f6b..0d059365035a 100644
--- a/api.h
+++ b/api.h
@@ -17,13 +17,7 @@
#include <stddef.h>
#include <curl/curl.h>
#include <json-c/json_tokener.h>
-
-struct string {
- char* data;
- size_t len;
-};
-
-typedef struct string String;
+#include "string-tick.h"
struct info {
char* name; // Name of security (ex. Apple Inc.)
@@ -40,13 +34,6 @@ typedef struct info Info;
typedef struct json_object Json;
/**
- * Creates and returns a STRING
- * object with size 1 and no data
- * @return STRING object
- */
-String* api_string_init(void);
-
-/**
* Creates and returns an Info object
* @return Info object
*/
@@ -154,20 +141,6 @@ Info* coinmarketcap_get_info(const char* ticker_name_string);
char* google_shorten_link(const char* url_string);
/**
- * Returns the input string, stripped of the given char
- * @param string the string to strip the char from
- * @param c the char to strip
- * @return input string
- */
-char* strip_char(char* string, char c);
-
-/**
- * Destroys String object and frees memory
- * @param phString the String to destroy
- */
-void api_string_destroy(String** phString);
-
-/**
* Destroys Info object and frees memory
* @param phInfo the Info to destroy
*/