aboutsummarylogtreecommitdiffstats
path: root/info.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-05-29 10:31:24 -0400
committerAntony Kellermann2018-05-29 10:31:24 -0400
commit2d85ee4af698ca178fb8010e0ca880b1acd1d23c (patch)
treefd87a3ba61302cd31695f9c5c0886bc1f8807bfa /info.h
parenta1d780207c926be3fadd739dcc640048f0a4235c (diff)
downloadaur-2d85ee4af698ca178fb8010e0ca880b1acd1d23c.tar.gz
Changed graphing to use an Info object
Diffstat (limited to 'info.h')
-rw-r--r--info.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/info.h b/info.h
index 174d6374e3a0..abc0372a99b4 100644
--- a/info.h
+++ b/info.h
@@ -51,6 +51,8 @@ void symbol_print_info(const char* symbol);
*/
void symbol_print_news(const char* symbol, int num_articles);
+void symbol_graph(const char* symbol, const char* symbol2);
+
/**
* -- Main input loop for graphing --
*
@@ -66,7 +68,7 @@ void symbol_print_news(const char* symbol, int num_articles);
* @param symbol first symbol
* @param symbol2 second symbol
*/
-void graph_main(const char* symbol, const char* symbol2, WINDOW* window);
+void graph_printw(WINDOW* window, Info* symbol_info, Info* symbol_info2);
/**
* Prints out a NCurses based graph given an array of daily close prices.
@@ -80,8 +82,7 @@ void graph_main(const char* symbol, const char* symbol2, WINDOW* window);
* @param symbol first symbol
* @param symbol2 second symbol
*/
-void graph_print(const double* points, const double* points2, struct tm* start_time, int zoom,
- const char* symbol, const char* symbol2, WINDOW* window);
+void graph_draw(WINDOW* window, Info* symbol_info, Info* symbol_info2, struct tm* start_time, int zoom);
/**
* Reallocates the given array with size trading days. Moves all values to end of the array and sets