/usr/include/licq/icq/codes.h is in licq-dev 1.6.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | /*
* This file is part of Licq, an instant messaging client for UNIX.
* Copyright (C) 2010-2011 Licq developers
*
* Licq 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.
*
* Licq 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 Licq; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef LICQ_ICQCODES_H
#define LICQ_ICQCODES_H
#ifdef __cplusplus
extern "C"
{
#endif
#define NUM_BACKGROUNDS 8
struct SCategory
{
char* szName; /* Name of the background */
unsigned short nCode; /* Background code */
unsigned short nIndex; /* Index in array */
};
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);
#define COUNTRY_UNSPECIFIED 0
#define COUNTRY_UNKNOWN 0xFFFF
#define NUM_COUNTRIES 244
struct SCountry
{
char* szName; /* Name of the country */
unsigned short nCode; /* Country code */
unsigned short nPhone; /* International phone code */
unsigned short nIndex; /* Index in array */
};
extern const struct SCountry gCountries[];
const struct SCountry* GetCountryByCode(unsigned short _nCountryCode);
const struct SCountry* GetCountryByIndex(unsigned short _nIndex);
const struct SCountry* GetCountryByName(const char* _szName);
#define NUM_HOMEPAGECATS 2985
struct SHomepageCat
{
char* szName; /* Name of the category */
unsigned short nCode; /* Category code */
unsigned short nIndex; /* Index in array */
};
extern const struct SHomepageCat gHomepageCategories[];
const struct SHomepageCat* GetHomepageCatByCode(unsigned short _nCode);
const struct SHomepageCat* GetHomepageCatByIndex(unsigned short _nIndex);
const struct SHomepageCat* GetHomepageCatByName(const char* _szName);
#define NUM_INTERESTS 51
extern const struct SCategory gInterests[];
const struct SCategory* GetInterestByCode(unsigned short _nCode);
const struct SCategory* GetInterestByIndex(unsigned short _nIndex);
const struct SCategory* GetInterestByName(const char* _szName);
#define LANGUAGE_UNSPECIFIED 0
#define NUM_LANGUAGES 73
struct SLanguage
{
char* szName; /* Name of the country */
unsigned short nCode; /* Country code */
unsigned short nIndex; /* Index in array */
};
extern const struct SLanguage gLanguages[];
const struct SLanguage* GetLanguageByCode(unsigned short _nCode);
const struct SLanguage* GetLanguageByIndex(unsigned short _nIndex);
const struct SLanguage* GetLanguageByName(const char* _szName);
#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);
#define NUM_ORGANIZATIONS 20
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);
#define NUM_PROVIDERS 32
struct SProvider
{
char* szName; /* Name of provider */
char* szGateway; /* E-mail gateway of the provider */
unsigned short nIndex; /* Index in array */
};
extern const struct SProvider gProviders[];
const struct SProvider* GetProviderByGateway(const char* _szGateway);
const struct SProvider* GetProviderByIndex(unsigned short _nIndex);
const struct SProvider* GetProviderByName(const char* _szName);
#ifdef __cplusplus
}
#endif
#endif // LICQ_ICQCODES_H
|