File: licq_organizationcodes.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 (31 lines) | stat: -rw-r--r-- 649 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 c
#define ORGANIZATION_H

#ifdef __cplusplus
extern "C"
{
#endif

#define NUM_ORGANIZATIONS 20

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

const struct SCategory *GetOrganizationByCode(unsigned short _nCode);
const struct SCategory *GetOrganizationByIndex(unsigned short _nIndex);
const struct SCategory *GetOrganizationByName(const char *_szName);

#ifdef __cplusplus
}
#endif

#endif // ORGANIZATION_H