diff options
author | Antony Kellermann | 2018-05-15 13:09:06 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-05-15 13:09:06 -0400 |
commit | 49506ca5d3a1a3fe98efe92062d2d9fa57cb0b8b (patch) | |
tree | 7c9f379a67fdbc6b9009eaa0450020dd80b29bc9 /api.h | |
parent | c38cbbc27cf50967f17cdc65db198d449dd932c6 (diff) | |
download | aur-49506ca5d3a1a3fe98efe92062d2d9fa57cb0b8b.tar.gz |
Fixed graph zoom indicator issue and small optimizations
Diffstat (limited to 'api.h')
-rw-r--r-- | api.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -16,7 +16,7 @@ #include <json-c/json_tokener.h> #include "string-tick.h" -struct info { +typedef struct info { char* name; // Name of security (ex. Apple Inc.) char* symbol; // Symbol of security (ex. AAPL) double price; // Current price of security in USD (ex. 174.54) @@ -24,9 +24,7 @@ struct info { double div_yield; // Percent dividend yield (ex. 1.46) long marketcap; // Market cap in USD (ex. 890489000000) long volume_1d; // Volume in shares of security (ex. 33812360) -}; - -typedef struct info Info; +} Info; /** * Creates and returns an Info object. name and symbol are allocated 64 bytes. the doubles and long are set to EMPTY |