File: menu.h

package info (click to toggle)
mixmaster 3.0b2-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 1,356 kB
  • ctags: 1,173
  • sloc: ansic: 18,314; sh: 1,285; yacc: 698; perl: 314; makefile: 161
file content (50 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download | duplicates (3)
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
50
/* Mixmaster version 3.0  --  (C) 1999 - 2004 Anonymizer Inc. and others.

   Mixmaster may be redistributed and modified under certain conditions.
   This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
   ANY KIND, either express or implied. See the file COPYRIGHT for
   details.

   Menu-based user interface
   $Id: menu.h 796 2004-05-03 23:32:59Z weasel $ */


#ifndef _MENU_H
#define _MENU_H
#include "mix3.h"
#ifdef USE_NCURSES
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else /* end of HAVE_NCURSES_H */
#include <curses.h>
#endif /* else if not HAVE_NCURSES_H */
#endif /* USE_NCURSES */

#define NONANON "non-anonymous"
#define ANON "Anonymous"

void send_message(int type, char *nym, BUFFER *txt);
void read_folder(char command, char *foldername, char *nym);
void menu_init(void);
void menu_exit(void);

void menu_spawn_editor(char *path, int lineno);

#ifdef USE_NCURSES
void read_message(BUFFER *message, char *nym);
void menu_nym(char *);
void menu_chain(char *chain, int type, int post);
void cl(int y, int x);
void askfilename(char *fn);
void savemsg(BUFFER *message);
int menu_replychain(int *d, int *l, char *mdest, char *pdest, char *psub,
		    char *r);
#ifdef WIN32
void update_stats(void);
#endif /* WIN32 */

#endif /* USE_NCURSES */

#define maxnym 30

#endif /* not _MENU_H */