stock_quotes.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 58 行

H
58
字号
/******************************************************************* *  *  Copyright C 2006 by Amlogic, Inc. All Rights Reserved. * *  Description: Module to retrieve stock quotes from Yahoo Finance. * *  Author: Eric Knudstrup *  Created: Tue Dec 05 17:29:00 2006 * *******************************************************************/#ifndef STOCK_QUOTES_H#define STOCK_QUOTES_Htypedef struct {    char *symbol;    float current_price;    char *date;    char *time;    float change;    float open;    float high;    float low;    unsigned int volume;} StockQuote_t;typedef struct stock_quote_client_s StockQuoteClient_t;typedef void (*stock_quote_result_cb)(StockQuoteClient_t *client,                                      StockQuote_t *quote);/*;emacs generated header for file stock_quotes.c. Do not edit between here and end *//** * Retrieve a quote for a symbol registered on the United States * exchanges. */extern intstock_quote_get(StockQuoteClient_t *client, char *symbol);/** * Delete a \a StockQuoteClient_t context. */extern voidstock_quote_client_delete(StockQuoteClient_t *client);/** * Create a stock quote client context. * @param[in] result_cb The result callback. * * @returns a \a StockQuoteClient_t context, or NULL if failed. */extern StockQuoteClient_t *stock_quote_client_create(stock_quote_result_cb result_cb);/*;end emacs generated header for file stock_quotes.c. Do not edit between here and end */#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?