aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-05-15 13:09:06 -0400
committerAntony Kellermann2018-05-15 13:09:06 -0400
commit49506ca5d3a1a3fe98efe92062d2d9fa57cb0b8b (patch)
tree7c9f379a67fdbc6b9009eaa0450020dd80b29bc9 /api.h
parentc38cbbc27cf50967f17cdc65db198d449dd932c6 (diff)
downloadaur-49506ca5d3a1a3fe98efe92062d2d9fa57cb0b8b.tar.gz
Fixed graph zoom indicator issue and small optimizations
Diffstat (limited to 'api.h')
-rw-r--r--api.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/api.h b/api.h
index 1a78ac361710..3c00965d9579 100644
--- a/api.h
+++ b/api.h
@@ -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