1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
/*b
* Copyright (C) 2001,2002 Rick Richardson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Author: Rick Richardson <rickr@mn.rr.com>
b*/
#define AI_SOURCELEN 32
#define AI_ARTKEYLEN 32
typedef struct
{
char artkey[AI_ARTKEYLEN+1];
time_t utime;
char source[AI_SOURCELEN+1];
STREAMER sr;
//int words;
} ARTINFO;
void news_popup(
STREAMER sr,
STOCK *sp,
int mode
#define NEWS_DEFAULT 0
#define NEWS_MAIN 1
#define NEWS_STREAMER 2
#define NEWS_SAVED 3
);
int news_command(int c, STREAMER sr);
void add_headline(char *sym, char *headline, char *artkey,
time_t utime, char *source, STREAMER sr, int atend);
void save_headline(char *sym, char *artkey, char *headline,
time_t utime, char *source, STREAMER sr, int offset);
|