File: licq_occupationcodes.h

package info (click to toggle)
licq 1.3.4-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 22,052 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 (28 lines) | stat: -rw-r--r-- 618 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
#ifndef OCCUPATION_H
#define OCCUPATION_H

#ifdef __cplusplus
extern "C"
{
#endif

#define OCCUPATION_UNSPECIFIED  0
#define NUM_OCCUPATIONS 29

struct SOccupation
{
  char *szName;          /* Name of occupation */
  unsigned short nCode;  /* Occupation code */
  unsigned short nIndex; /* Index in array */
};
extern const struct SOccupation gOccupations[];

const struct SOccupation *GetOccupationByCode(unsigned short _nOccupationCode);
const struct SOccupation *GetOccupationByIndex(unsigned short _nIndex);
const struct SOccupation *GetOccupationByName(const char *_szName);

#ifdef __cplusplus
}
#endif

#endif