File: licq_backgroundcodes.h

package info (click to toggle)
licq 1.3.4-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 22,048 kB
  • ctags: 8,640
  • sloc: cpp: 76,924; sh: 9,845; ansic: 5,424; perl: 3,449; lex: 857; xml: 804; php: 691; makefile: 393; csh: 48
file content (31 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (4)
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
#ifndef BACKGROUND_H
#define BACKGROUND_H

#ifdef __cplusplus
extern "C"
{
#endif

#define NUM_BACKGROUNDS 8

#ifndef SCategoryDefined
#define SCategoryDefined
struct SCategory
{
  char *szName;          /* Name of the background */
  unsigned short nCode;  /* Background code */
  unsigned short nIndex; /* Index in array */
};
#endif
extern const struct SCategory gBackgrounds[];

const struct SCategory *GetBackgroundByCode(unsigned short _nCode);
const struct SCategory *GetBackgroundByIndex(unsigned short _nIndex);
const struct SCategory *GetBackgroundByName(const char *_szName);

#ifdef __cplusplus
}
#endif

#endif // BACKGROUND_H