File indexing completed on 2025-01-18 09:28:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
0025 #error "Only <atk/atk.h> can be included directly."
0026 #endif
0027
0028 #ifndef __ATK_VERSION_H__
0029 #define __ATK_VERSION_H__
0030
0031 #include <glib.h>
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042 #define ATK_MAJOR_VERSION (2)
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053 #define ATK_MINOR_VERSION (54)
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064 #define ATK_MICRO_VERSION (0)
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075 #define ATK_BINARY_AGE (25410)
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086 #define ATK_INTERFACE_AGE (1)
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099 #define ATK_CHECK_VERSION(major,minor,micro) \
0100 (ATK_MAJOR_VERSION > (major) || \
0101 (ATK_MAJOR_VERSION == (major) && ATK_MINOR_VERSION > (minor)) || \
0102 (ATK_MAJOR_VERSION == (major) && ATK_MINOR_VERSION == (minor) && \
0103 ATK_MICRO_VERSION >= (micro)))
0104
0105 #ifndef _ATK_EXTERN
0106 #define _ATK_EXTERN extern
0107 #endif
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117 #define ATK_VERSION_2_2 (G_ENCODE_VERSION (2, 2))
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127 #define ATK_VERSION_2_4 (G_ENCODE_VERSION (2, 4))
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137 #define ATK_VERSION_2_6 (G_ENCODE_VERSION (2, 6))
0138
0139
0140
0141
0142
0143
0144
0145
0146
0147 #define ATK_VERSION_2_8 (G_ENCODE_VERSION (2, 8))
0148
0149
0150
0151
0152
0153
0154
0155
0156
0157
0158 #define ATK_VERSION_2_10 (G_ENCODE_VERSION (2, 10))
0159
0160
0161
0162
0163
0164
0165
0166
0167 #define ATK_VERSION_2_12 (G_ENCODE_VERSION (2, 12))
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177 #define ATK_VERSION_2_14 (G_ENCODE_VERSION (2, 14))
0178
0179
0180
0181
0182
0183
0184
0185
0186
0187 #define ATK_VERSION_2_30 (G_ENCODE_VERSION (2, 30))
0188
0189
0190
0191
0192
0193
0194
0195
0196
0197 #define ATK_VERSION_2_32 (G_ENCODE_VERSION (2, 32))
0198
0199
0200
0201
0202
0203
0204
0205
0206
0207 #define ATK_VERSION_2_36 (G_ENCODE_VERSION (2, 36))
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217 #define ATK_VERSION_2_52 (G_ENCODE_VERSION (2, 52))
0218
0219
0220
0221
0222 #if (ATK_MINOR_VERSION % 2)
0223 #define ATK_VERSION_CUR_STABLE (G_ENCODE_VERSION (ATK_MAJOR_VERSION, ATK_MINOR_VERSION + 1))
0224 #else
0225 #define ATK_VERSION_CUR_STABLE (G_ENCODE_VERSION (ATK_MAJOR_VERSION, ATK_MINOR_VERSION))
0226 #endif
0227
0228
0229 #if (ATK_MINOR_VERSION % 2)
0230 #define ATK_VERSION_PREV_STABLE (G_ENCODE_VERSION (ATK_MAJOR_VERSION, ATK_MINOR_VERSION - 1))
0231 #else
0232 #define ATK_VERSION_PREV_STABLE (G_ENCODE_VERSION (ATK_MAJOR_VERSION, ATK_MINOR_VERSION - 2))
0233 #endif
0234
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257 #ifndef ATK_VERSION_MIN_REQUIRED
0258 # define ATK_VERSION_MIN_REQUIRED (ATK_VERSION_CUR_STABLE)
0259 #elif ATK_VERSION_MIN_REQUIRED == 0
0260 # undef ATK_VERSION_MIN_REQUIRED
0261 # define ATK_VERSION_MIN_REQUIRED (ATK_VERSION_CUR_STABLE + 2)
0262 #endif
0263
0264
0265
0266
0267
0268
0269
0270
0271
0272
0273
0274
0275
0276
0277
0278
0279
0280
0281
0282
0283
0284
0285 #if !defined (ATK_VERSION_MAX_ALLOWED) || (ATK_VERSION_MAX_ALLOWED == 0)
0286 # undef ATK_VERSION_MAX_ALLOWED
0287 # define ATK_VERSION_MAX_ALLOWED (ATK_VERSION_CUR_STABLE)
0288 #endif
0289
0290
0291 #if ATK_VERSION_MIN_REQUIRED > ATK_VERSION_CUR_STABLE
0292 #error "ATK_VERSION_MIN_REQUIRED must be <= ATK_VERSION_CUR_STABLE"
0293 #endif
0294 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_MIN_REQUIRED
0295 #error "ATK_VERSION_MAX_ALLOWED must be >= ATK_VERSION_MIN_REQUIRED"
0296 #endif
0297 #if ATK_VERSION_MIN_REQUIRED < ATK_VERSION_2_2
0298 #error "ATK_VERSION_MIN_REQUIRED must be >= ATK_VERSION_2_2"
0299 #endif
0300
0301
0302
0303
0304
0305
0306
0307 #ifdef ATK_DISABLE_DEPRECATION_WARNINGS
0308 #define ATK_DEPRECATED _ATK_EXTERN
0309 #define ATK_DEPRECATED_FOR(f) _ATK_EXTERN
0310 #define ATK_UNAVAILABLE(maj,min) _ATK_EXTERN
0311 #else
0312 #define ATK_DEPRECATED G_DEPRECATED _ATK_EXTERN
0313 #define ATK_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _ATK_EXTERN
0314 #define ATK_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min) _ATK_EXTERN
0315 #endif
0316
0317 #define ATK_AVAILABLE_IN_ALL _ATK_EXTERN
0318
0319
0320
0321 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_2
0322 # define ATK_DEPRECATED_IN_2_2 ATK_DEPRECATED
0323 # define ATK_DEPRECATED_IN_2_2_FOR(f) ATK_DEPRECATED_FOR(f)
0324 #else
0325 # define ATK_DEPRECATED_IN_2_2 _ATK_EXTERN
0326 # define ATK_DEPRECATED_IN_2_2_FOR(f) _ATK_EXTERN
0327 #endif
0328
0329 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_2
0330 # define ATK_AVAILABLE_IN_2_2 ATK_UNAVAILABLE(2, 2)
0331 #else
0332 # define ATK_AVAILABLE_IN_2_2 _ATK_EXTERN
0333 #endif
0334
0335 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_4
0336 # define ATK_DEPRECATED_IN_2_4 ATK_DEPRECATED
0337 # define ATK_DEPRECATED_IN_2_4_FOR(f) ATK_DEPRECATED_FOR(f)
0338 #else
0339 # define ATK_DEPRECATED_IN_2_4 _ATK_EXTERN
0340 # define ATK_DEPRECATED_IN_2_4_FOR(f) _ATK_EXTERN
0341 #endif
0342
0343 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_4
0344 # define ATK_AVAILABLE_IN_2_4 ATK_UNAVAILABLE(2, 4)
0345 #else
0346 # define ATK_AVAILABLE_IN_2_4 _ATK_EXTERN
0347 #endif
0348
0349 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_6
0350 # define ATK_DEPRECATED_IN_2_6 ATK_DEPRECATED
0351 # define ATK_DEPRECATED_IN_2_6_FOR(f) ATK_DEPRECATED_FOR(f)
0352 #else
0353 # define ATK_DEPRECATED_IN_2_6 _ATK_EXTERN
0354 # define ATK_DEPRECATED_IN_2_6_FOR(f) _ATK_EXTERN
0355 #endif
0356
0357 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_6
0358 # define ATK_AVAILABLE_IN_2_6 ATK_UNAVAILABLE(2, 6)
0359 #else
0360 # define ATK_AVAILABLE_IN_2_6 _ATK_EXTERN
0361 #endif
0362
0363 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_8
0364 # define ATK_DEPRECATED_IN_2_8 ATK_DEPRECATED
0365 # define ATK_DEPRECATED_IN_2_8_FOR(f) ATK_DEPRECATED_FOR(f)
0366 #else
0367 # define ATK_DEPRECATED_IN_2_8 _ATK_EXTERN
0368 # define ATK_DEPRECATED_IN_2_8_FOR(f) _ATK_EXTERN
0369 #endif
0370
0371 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_8
0372 # define ATK_AVAILABLE_IN_2_8 ATK_UNAVAILABLE(2, 8)
0373 #else
0374 # define ATK_AVAILABLE_IN_2_8 _ATK_EXTERN
0375 #endif
0376
0377 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_10
0378 # define ATK_DEPRECATED_IN_2_10 ATK_DEPRECATED
0379 # define ATK_DEPRECATED_IN_2_10_FOR(f) ATK_DEPRECATED_FOR(f)
0380 #else
0381 # define ATK_DEPRECATED_IN_2_10 _ATK_EXTERN
0382 # define ATK_DEPRECATED_IN_2_10_FOR(f) _ATK_EXTERN
0383 #endif
0384
0385 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_10
0386 # define ATK_AVAILABLE_IN_2_10 ATK_UNAVAILABLE(2, 10)
0387 #else
0388 # define ATK_AVAILABLE_IN_2_10 _ATK_EXTERN
0389 #endif
0390
0391 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_12
0392 # define ATK_DEPRECATED_IN_2_12 ATK_DEPRECATED
0393 # define ATK_DEPRECATED_IN_2_12_FOR(f) ATK_DEPRECATED_FOR(f)
0394 #else
0395 # define ATK_DEPRECATED_IN_2_12 _ATK_EXTERN
0396 # define ATK_DEPRECATED_IN_2_12_FOR(f) _ATK_EXTERN
0397 #endif
0398
0399 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_12
0400 # define ATK_AVAILABLE_IN_2_12 ATK_UNAVAILABLE(2, 12)
0401 #else
0402 # define ATK_AVAILABLE_IN_2_12 _ATK_EXTERN
0403 #endif
0404
0405 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_14
0406 # define ATK_DEPRECATED_IN_2_14 ATK_DEPRECATED
0407 # define ATK_DEPRECATED_IN_2_14_FOR(f) ATK_DEPRECATED_FOR(f)
0408 #else
0409 # define ATK_DEPRECATED_IN_2_14 _ATK_EXTERN
0410 # define ATK_DEPRECATED_IN_2_14_FOR(f) _ATK_EXTERN
0411 #endif
0412
0413 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_14
0414 # define ATK_AVAILABLE_IN_2_14 ATK_UNAVAILABLE(2, 14)
0415 #else
0416 # define ATK_AVAILABLE_IN_2_14 _ATK_EXTERN
0417 #endif
0418
0419 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_30
0420 # define ATK_DEPRECATED_IN_2_30 ATK_DEPRECATED
0421 # define ATK_DEPRECATED_IN_2_30_FOR(f) ATK_DEPRECATED_FOR(f)
0422 #else
0423 # define ATK_DEPRECATED_IN_2_30 _ATK_EXTERN
0424 # define ATK_DEPRECATED_IN_2_30_FOR(f) _ATK_EXTERN
0425 #endif
0426
0427 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_30
0428 # define ATK_AVAILABLE_IN_2_30 ATK_UNAVAILABLE(2, 30)
0429 #else
0430 # define ATK_AVAILABLE_IN_2_30 _ATK_EXTERN
0431 #endif
0432
0433 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_32
0434 # define ATK_AVAILABLE_IN_2_32 ATK_UNAVAILABLE(2, 32)
0435 #else
0436 # define ATK_AVAILABLE_IN_2_32 _ATK_EXTERN
0437 #endif
0438
0439 #if ATK_VERSION_MIN_REQUIRED >= ATK_VERSION_2_36
0440 # define ATK_DEPRECATED_IN_2_36 ATK_DEPRECATED
0441 # define ATK_DEPRECATED_IN_2_36_FOR(f) ATK_DEPRECATED_FOR(f)
0442 #else
0443 # define ATK_DEPRECATED_IN_2_36 _ATK_EXTERN
0444 # define ATK_DEPRECATED_IN_2_36_FOR(f) _ATK_EXTERN
0445 #endif
0446
0447 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_36
0448 # define ATK_AVAILABLE_IN_2_36 ATK_UNAVAILABLE(2, 36)
0449 #else
0450 # define ATK_AVAILABLE_IN_2_36 _ATK_EXTERN
0451 #endif
0452
0453 #if ATK_VERSION_MAX_ALLOWED < ATK_VERSION_2_52
0454 # define ATK_AVAILABLE_IN_2_52 ATK_UNAVAILABLE(2, 52)
0455 #else
0456 # define ATK_AVAILABLE_IN_2_52 _ATK_EXTERN
0457 #endif
0458
0459 ATK_AVAILABLE_IN_2_8
0460 guint atk_get_major_version (void) G_GNUC_CONST;
0461 ATK_AVAILABLE_IN_2_8
0462 guint atk_get_minor_version (void) G_GNUC_CONST;
0463 ATK_AVAILABLE_IN_2_8
0464 guint atk_get_micro_version (void) G_GNUC_CONST;
0465 ATK_AVAILABLE_IN_2_8
0466 guint atk_get_binary_age (void) G_GNUC_CONST;
0467 ATK_AVAILABLE_IN_2_8
0468 guint atk_get_interface_age (void) G_GNUC_CONST;
0469
0470 #define atk_major_version atk_get_major_version ()
0471 #define atk_minor_version atk_get_minor_version ()
0472 #define atk_micro_version atk_get_micro_version ()
0473 #define atk_binary_age atk_get_binary_age ()
0474 #define atk_interface_age atk_get_interface_age ()
0475
0476 #endif