gioenums.h 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776
  1. /* GIO - GLib Input, Output and Streaming Library
  2. *
  3. * Copyright (C) 2006-2007 Red Hat, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General
  16. * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * Author: Alexander Larsson <[email protected]>
  19. */
  20. #ifndef __GIO_ENUMS_H__
  21. #define __GIO_ENUMS_H__
  22. #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
  23. #error "Only <gio/gio.h> can be included directly."
  24. #endif
  25. #include <glib-object.h>
  26. G_BEGIN_DECLS
  27. /**
  28. * GAppInfoCreateFlags:
  29. * @G_APP_INFO_CREATE_NONE: No flags.
  30. * @G_APP_INFO_CREATE_NEEDS_TERMINAL: Application opens in a terminal window.
  31. * @G_APP_INFO_CREATE_SUPPORTS_URIS: Application supports URI arguments.
  32. * @G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: Application supports startup notification. Since 2.26
  33. *
  34. * Flags used when creating a #GAppInfo.
  35. */
  36. typedef enum {
  37. G_APP_INFO_CREATE_NONE = 0, /*< nick=none >*/
  38. G_APP_INFO_CREATE_NEEDS_TERMINAL = (1 << 0), /*< nick=needs-terminal >*/
  39. G_APP_INFO_CREATE_SUPPORTS_URIS = (1 << 1), /*< nick=supports-uris >*/
  40. G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION = (1 << 2) /*< nick=supports-startup-notification >*/
  41. } GAppInfoCreateFlags;
  42. /**
  43. * GConverterFlags:
  44. * @G_CONVERTER_NO_FLAGS: No flags.
  45. * @G_CONVERTER_INPUT_AT_END: At end of input data
  46. * @G_CONVERTER_FLUSH: Flush data
  47. *
  48. * Flags used when calling a g_converter_convert().
  49. *
  50. * Since: 2.24
  51. */
  52. typedef enum {
  53. G_CONVERTER_NO_FLAGS = 0, /*< nick=none >*/
  54. G_CONVERTER_INPUT_AT_END = (1 << 0), /*< nick=input-at-end >*/
  55. G_CONVERTER_FLUSH = (1 << 1) /*< nick=flush >*/
  56. } GConverterFlags;
  57. /**
  58. * GConverterResult:
  59. * @G_CONVERTER_ERROR: There was an error during conversion.
  60. * @G_CONVERTER_CONVERTED: Some data was consumed or produced
  61. * @G_CONVERTER_FINISHED: The conversion is finished
  62. * @G_CONVERTER_FLUSHED: Flushing is finished
  63. *
  64. * Results returned from g_converter_convert().
  65. *
  66. * Since: 2.24
  67. */
  68. typedef enum {
  69. G_CONVERTER_ERROR = 0, /*< nick=error >*/
  70. G_CONVERTER_CONVERTED = 1, /*< nick=converted >*/
  71. G_CONVERTER_FINISHED = 2, /*< nick=finished >*/
  72. G_CONVERTER_FLUSHED = 3 /*< nick=flushed >*/
  73. } GConverterResult;
  74. /**
  75. * GDataStreamByteOrder:
  76. * @G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: Selects Big Endian byte order.
  77. * @G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: Selects Little Endian byte order.
  78. * @G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: Selects endianness based on host machine's architecture.
  79. *
  80. * #GDataStreamByteOrder is used to ensure proper endianness of streaming data sources
  81. * across various machine architectures.
  82. *
  83. **/
  84. typedef enum {
  85. G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN,
  86. G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN,
  87. G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN
  88. } GDataStreamByteOrder;
  89. /**
  90. * GDataStreamNewlineType:
  91. * @G_DATA_STREAM_NEWLINE_TYPE_LF: Selects "LF" line endings, common on most modern UNIX platforms.
  92. * @G_DATA_STREAM_NEWLINE_TYPE_CR: Selects "CR" line endings.
  93. * @G_DATA_STREAM_NEWLINE_TYPE_CR_LF: Selects "CR, LF" line ending, common on Microsoft Windows.
  94. * @G_DATA_STREAM_NEWLINE_TYPE_ANY: Automatically try to handle any line ending type.
  95. *
  96. * #GDataStreamNewlineType is used when checking for or setting the line endings for a given file.
  97. **/
  98. typedef enum {
  99. G_DATA_STREAM_NEWLINE_TYPE_LF,
  100. G_DATA_STREAM_NEWLINE_TYPE_CR,
  101. G_DATA_STREAM_NEWLINE_TYPE_CR_LF,
  102. G_DATA_STREAM_NEWLINE_TYPE_ANY
  103. } GDataStreamNewlineType;
  104. /**
  105. * GFileAttributeType:
  106. * @G_FILE_ATTRIBUTE_TYPE_INVALID: indicates an invalid or uninitalized type.
  107. * @G_FILE_ATTRIBUTE_TYPE_STRING: a null terminated UTF8 string.
  108. * @G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: a zero terminated string of non-zero bytes.
  109. * @G_FILE_ATTRIBUTE_TYPE_BOOLEAN: a boolean value.
  110. * @G_FILE_ATTRIBUTE_TYPE_UINT32: an unsigned 4-byte/32-bit integer.
  111. * @G_FILE_ATTRIBUTE_TYPE_INT32: a signed 4-byte/32-bit integer.
  112. * @G_FILE_ATTRIBUTE_TYPE_UINT64: an unsigned 8-byte/64-bit integer.
  113. * @G_FILE_ATTRIBUTE_TYPE_INT64: a signed 8-byte/64-bit integer.
  114. * @G_FILE_ATTRIBUTE_TYPE_OBJECT: a #GObject.
  115. * @G_FILE_ATTRIBUTE_TYPE_STRINGV: a %NULL terminated char **. Since 2.22
  116. *
  117. * The data types for file attributes.
  118. **/
  119. typedef enum {
  120. G_FILE_ATTRIBUTE_TYPE_INVALID = 0,
  121. G_FILE_ATTRIBUTE_TYPE_STRING,
  122. G_FILE_ATTRIBUTE_TYPE_BYTE_STRING, /* zero terminated string of non-zero bytes */
  123. G_FILE_ATTRIBUTE_TYPE_BOOLEAN,
  124. G_FILE_ATTRIBUTE_TYPE_UINT32,
  125. G_FILE_ATTRIBUTE_TYPE_INT32,
  126. G_FILE_ATTRIBUTE_TYPE_UINT64,
  127. G_FILE_ATTRIBUTE_TYPE_INT64,
  128. G_FILE_ATTRIBUTE_TYPE_OBJECT,
  129. G_FILE_ATTRIBUTE_TYPE_STRINGV
  130. } GFileAttributeType;
  131. /**
  132. * GFileAttributeInfoFlags:
  133. * @G_FILE_ATTRIBUTE_INFO_NONE: no flags set.
  134. * @G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: copy the attribute values when the file is copied.
  135. * @G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: copy the attribute values when the file is moved.
  136. *
  137. * Flags specifying the behaviour of an attribute.
  138. **/
  139. typedef enum {
  140. G_FILE_ATTRIBUTE_INFO_NONE = 0,
  141. G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE = (1 << 0),
  142. G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED = (1 << 1)
  143. } GFileAttributeInfoFlags;
  144. /**
  145. * GFileAttributeStatus:
  146. * @G_FILE_ATTRIBUTE_STATUS_UNSET: Attribute value is unset (empty).
  147. * @G_FILE_ATTRIBUTE_STATUS_SET: Attribute value is set.
  148. * @G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: Indicates an error in setting the value.
  149. *
  150. * Used by g_file_set_attributes_from_info() when setting file attributes.
  151. **/
  152. typedef enum {
  153. G_FILE_ATTRIBUTE_STATUS_UNSET = 0,
  154. G_FILE_ATTRIBUTE_STATUS_SET,
  155. G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING
  156. } GFileAttributeStatus;
  157. /**
  158. * GFileQueryInfoFlags:
  159. * @G_FILE_QUERY_INFO_NONE: No flags set.
  160. * @G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: Don't follow symlinks.
  161. *
  162. * Flags used when querying a #GFileInfo.
  163. */
  164. typedef enum {
  165. G_FILE_QUERY_INFO_NONE = 0,
  166. G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS = (1 << 0) /*< nick=nofollow-symlinks >*/
  167. } GFileQueryInfoFlags;
  168. /**
  169. * GFileCreateFlags:
  170. * @G_FILE_CREATE_NONE: No flags set.
  171. * @G_FILE_CREATE_PRIVATE: Create a file that can only be
  172. * accessed by the current user.
  173. * @G_FILE_CREATE_REPLACE_DESTINATION: Replace the destination
  174. * as if it didn't exist before. Don't try to keep any old
  175. * permissions, replace instead of following links. This
  176. * is generally useful if you're doing a "copy over"
  177. * rather than a "save new version of" replace operation.
  178. * You can think of it as "unlink destination" before
  179. * writing to it, although the implementation may not
  180. * be exactly like that. Since 2.20
  181. *
  182. * Flags used when an operation may create a file.
  183. */
  184. typedef enum {
  185. G_FILE_CREATE_NONE = 0,
  186. G_FILE_CREATE_PRIVATE = (1 << 0),
  187. G_FILE_CREATE_REPLACE_DESTINATION = (1 << 1)
  188. } GFileCreateFlags;
  189. /**
  190. * GFileMeasureFlags:
  191. * @G_FILE_MEASURE_NONE: No flags set.
  192. * @G_FILE_MEASURE_REPORT_ANY_ERROR: Report any error encountered
  193. * while traversing the directory tree. Normally errors are only
  194. * reported for the toplevel file.
  195. * @G_FILE_MEASURE_APPARENT_SIZE: Tally usage based on apparent file
  196. * sizes. Normally, the block-size is used, if available, as this is a
  197. * more accurate representation of disk space used.
  198. * Compare with `du --apparent-size`.
  199. * @G_FILE_MEASURE_NO_XDEV: Do not cross mount point boundaries.
  200. * Compare with `du -x`.
  201. *
  202. * Flags that can be used with g_file_measure_disk_usage().
  203. *
  204. * Since: 2.38
  205. **/
  206. typedef enum {
  207. G_FILE_MEASURE_NONE = 0,
  208. G_FILE_MEASURE_REPORT_ANY_ERROR = (1 << 1),
  209. G_FILE_MEASURE_APPARENT_SIZE = (1 << 2),
  210. G_FILE_MEASURE_NO_XDEV = (1 << 3)
  211. } GFileMeasureFlags;
  212. /**
  213. * GMountMountFlags:
  214. * @G_MOUNT_MOUNT_NONE: No flags set.
  215. *
  216. * Flags used when mounting a mount.
  217. */
  218. typedef enum /*< flags >*/ {
  219. G_MOUNT_MOUNT_NONE = 0
  220. } GMountMountFlags;
  221. /**
  222. * GMountUnmountFlags:
  223. * @G_MOUNT_UNMOUNT_NONE: No flags set.
  224. * @G_MOUNT_UNMOUNT_FORCE: Unmount even if there are outstanding
  225. * file operations on the mount.
  226. *
  227. * Flags used when an unmounting a mount.
  228. */
  229. typedef enum {
  230. G_MOUNT_UNMOUNT_NONE = 0,
  231. G_MOUNT_UNMOUNT_FORCE = (1 << 0)
  232. } GMountUnmountFlags;
  233. /**
  234. * GDriveStartFlags:
  235. * @G_DRIVE_START_NONE: No flags set.
  236. *
  237. * Flags used when starting a drive.
  238. *
  239. * Since: 2.22
  240. */
  241. typedef enum /*< flags >*/ {
  242. G_DRIVE_START_NONE = 0
  243. } GDriveStartFlags;
  244. /**
  245. * GDriveStartStopType:
  246. * @G_DRIVE_START_STOP_TYPE_UNKNOWN: Unknown or drive doesn't support
  247. * start/stop.
  248. * @G_DRIVE_START_STOP_TYPE_SHUTDOWN: The stop method will physically
  249. * shut down the drive and e.g. power down the port the drive is
  250. * attached to.
  251. * @G_DRIVE_START_STOP_TYPE_NETWORK: The start/stop methods are used
  252. * for connecting/disconnect to the drive over the network.
  253. * @G_DRIVE_START_STOP_TYPE_MULTIDISK: The start/stop methods will
  254. * assemble/disassemble a virtual drive from several physical
  255. * drives.
  256. * @G_DRIVE_START_STOP_TYPE_PASSWORD: The start/stop methods will
  257. * unlock/lock the disk (for example using the ATA <quote>SECURITY
  258. * UNLOCK DEVICE</quote> command)
  259. *
  260. * Enumeration describing how a drive can be started/stopped.
  261. *
  262. * Since: 2.22
  263. */
  264. typedef enum {
  265. G_DRIVE_START_STOP_TYPE_UNKNOWN,
  266. G_DRIVE_START_STOP_TYPE_SHUTDOWN,
  267. G_DRIVE_START_STOP_TYPE_NETWORK,
  268. G_DRIVE_START_STOP_TYPE_MULTIDISK,
  269. G_DRIVE_START_STOP_TYPE_PASSWORD
  270. } GDriveStartStopType;
  271. /**
  272. * GFileCopyFlags:
  273. * @G_FILE_COPY_NONE: No flags set.
  274. * @G_FILE_COPY_OVERWRITE: Overwrite any existing files
  275. * @G_FILE_COPY_BACKUP: Make a backup of any existing files.
  276. * @G_FILE_COPY_NOFOLLOW_SYMLINKS: Don't follow symlinks.
  277. * @G_FILE_COPY_ALL_METADATA: Copy all file metadata instead of just default set used for copy (see #GFileInfo).
  278. * @G_FILE_COPY_NO_FALLBACK_FOR_MOVE: Don't use copy and delete fallback if native move not supported.
  279. * @G_FILE_COPY_TARGET_DEFAULT_PERMS: Leaves target file with default perms, instead of setting the source file perms.
  280. *
  281. * Flags used when copying or moving files.
  282. */
  283. typedef enum {
  284. G_FILE_COPY_NONE = 0, /*< nick=none >*/
  285. G_FILE_COPY_OVERWRITE = (1 << 0),
  286. G_FILE_COPY_BACKUP = (1 << 1),
  287. G_FILE_COPY_NOFOLLOW_SYMLINKS = (1 << 2),
  288. G_FILE_COPY_ALL_METADATA = (1 << 3),
  289. G_FILE_COPY_NO_FALLBACK_FOR_MOVE = (1 << 4),
  290. G_FILE_COPY_TARGET_DEFAULT_PERMS = (1 << 5)
  291. } GFileCopyFlags;
  292. /**
  293. * GFileMonitorFlags:
  294. * @G_FILE_MONITOR_NONE: No flags set.
  295. * @G_FILE_MONITOR_WATCH_MOUNTS: Watch for mount events.
  296. * @G_FILE_MONITOR_SEND_MOVED: Pair DELETED and CREATED events caused
  297. * by file renames (moves) and send a single G_FILE_MONITOR_EVENT_MOVED
  298. * event instead (NB: not supported on all backends; the default
  299. * behaviour -without specifying this flag- is to send single DELETED
  300. * and CREATED events).
  301. * @G_FILE_MONITOR_WATCH_HARD_LINKS: Watch for changes to the file made
  302. * via another hard link. Since 2.36.
  303. *
  304. * Flags used to set what a #GFileMonitor will watch for.
  305. */
  306. typedef enum {
  307. G_FILE_MONITOR_NONE = 0,
  308. G_FILE_MONITOR_WATCH_MOUNTS = (1 << 0),
  309. G_FILE_MONITOR_SEND_MOVED = (1 << 1),
  310. G_FILE_MONITOR_WATCH_HARD_LINKS = (1 << 2)
  311. } GFileMonitorFlags;
  312. /**
  313. * GFileType:
  314. * @G_FILE_TYPE_UNKNOWN: File's type is unknown.
  315. * @G_FILE_TYPE_REGULAR: File handle represents a regular file.
  316. * @G_FILE_TYPE_DIRECTORY: File handle represents a directory.
  317. * @G_FILE_TYPE_SYMBOLIC_LINK: File handle represents a symbolic link
  318. * (Unix systems).
  319. * @G_FILE_TYPE_SPECIAL: File is a "special" file, such as a socket, fifo,
  320. * block device, or character device.
  321. * @G_FILE_TYPE_SHORTCUT: File is a shortcut (Windows systems).
  322. * @G_FILE_TYPE_MOUNTABLE: File is a mountable location.
  323. *
  324. * Indicates the file's on-disk type.
  325. **/
  326. typedef enum {
  327. G_FILE_TYPE_UNKNOWN = 0,
  328. G_FILE_TYPE_REGULAR,
  329. G_FILE_TYPE_DIRECTORY,
  330. G_FILE_TYPE_SYMBOLIC_LINK,
  331. G_FILE_TYPE_SPECIAL, /* socket, fifo, blockdev, chardev */
  332. G_FILE_TYPE_SHORTCUT,
  333. G_FILE_TYPE_MOUNTABLE
  334. } GFileType;
  335. /**
  336. * GFilesystemPreviewType:
  337. * @G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: Only preview files if user has explicitly requested it.
  338. * @G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: Preview files if user has requested preview of "local" files.
  339. * @G_FILESYSTEM_PREVIEW_TYPE_NEVER: Never preview files.
  340. *
  341. * Indicates a hint from the file system whether files should be
  342. * previewed in a file manager. Returned as the value of the key
  343. * #G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW.
  344. **/
  345. typedef enum {
  346. G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS = 0,
  347. G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL,
  348. G_FILESYSTEM_PREVIEW_TYPE_NEVER
  349. } GFilesystemPreviewType;
  350. /**
  351. * GFileMonitorEvent:
  352. * @G_FILE_MONITOR_EVENT_CHANGED: a file changed.
  353. * @G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: a hint that this was probably the last change in a set of changes.
  354. * @G_FILE_MONITOR_EVENT_DELETED: a file was deleted.
  355. * @G_FILE_MONITOR_EVENT_CREATED: a file was created.
  356. * @G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: a file attribute was changed.
  357. * @G_FILE_MONITOR_EVENT_PRE_UNMOUNT: the file location will soon be unmounted.
  358. * @G_FILE_MONITOR_EVENT_UNMOUNTED: the file location was unmounted.
  359. * @G_FILE_MONITOR_EVENT_MOVED: the file was moved.
  360. *
  361. * Specifies what type of event a monitor event is.
  362. **/
  363. typedef enum {
  364. G_FILE_MONITOR_EVENT_CHANGED,
  365. G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT,
  366. G_FILE_MONITOR_EVENT_DELETED,
  367. G_FILE_MONITOR_EVENT_CREATED,
  368. G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED,
  369. G_FILE_MONITOR_EVENT_PRE_UNMOUNT,
  370. G_FILE_MONITOR_EVENT_UNMOUNTED,
  371. G_FILE_MONITOR_EVENT_MOVED
  372. } GFileMonitorEvent;
  373. /* This enumeration conflicts with GIOError in giochannel.h. However,
  374. * that is only used as a return value in some deprecated functions.
  375. * So, we reuse the same prefix for the enumeration values, but call
  376. * the actual enumeration (which is rarely used) GIOErrorEnum.
  377. */
  378. /**
  379. * GIOErrorEnum:
  380. * @G_IO_ERROR_FAILED: Generic error condition for when an operation fails
  381. * and no more specific #GIOErrorEnum value is defined.
  382. * @G_IO_ERROR_NOT_FOUND: File not found.
  383. * @G_IO_ERROR_EXISTS: File already exists.
  384. * @G_IO_ERROR_IS_DIRECTORY: File is a directory.
  385. * @G_IO_ERROR_NOT_DIRECTORY: File is not a directory.
  386. * @G_IO_ERROR_NOT_EMPTY: File is a directory that isn't empty.
  387. * @G_IO_ERROR_NOT_REGULAR_FILE: File is not a regular file.
  388. * @G_IO_ERROR_NOT_SYMBOLIC_LINK: File is not a symbolic link.
  389. * @G_IO_ERROR_NOT_MOUNTABLE_FILE: File cannot be mounted.
  390. * @G_IO_ERROR_FILENAME_TOO_LONG: Filename is too many characters.
  391. * @G_IO_ERROR_INVALID_FILENAME: Filename is invalid or contains invalid characters.
  392. * @G_IO_ERROR_TOO_MANY_LINKS: File contains too many symbolic links.
  393. * @G_IO_ERROR_NO_SPACE: No space left on drive.
  394. * @G_IO_ERROR_INVALID_ARGUMENT: Invalid argument.
  395. * @G_IO_ERROR_PERMISSION_DENIED: Permission denied.
  396. * @G_IO_ERROR_NOT_SUPPORTED: Operation not supported for the current backend.
  397. * @G_IO_ERROR_NOT_MOUNTED: File isn't mounted.
  398. * @G_IO_ERROR_ALREADY_MOUNTED: File is already mounted.
  399. * @G_IO_ERROR_CLOSED: File was closed.
  400. * @G_IO_ERROR_CANCELLED: Operation was cancelled. See #GCancellable.
  401. * @G_IO_ERROR_PENDING: Operations are still pending.
  402. * @G_IO_ERROR_READ_ONLY: File is read only.
  403. * @G_IO_ERROR_CANT_CREATE_BACKUP: Backup couldn't be created.
  404. * @G_IO_ERROR_WRONG_ETAG: File's Entity Tag was incorrect.
  405. * @G_IO_ERROR_TIMED_OUT: Operation timed out.
  406. * @G_IO_ERROR_WOULD_RECURSE: Operation would be recursive.
  407. * @G_IO_ERROR_BUSY: File is busy.
  408. * @G_IO_ERROR_WOULD_BLOCK: Operation would block.
  409. * @G_IO_ERROR_HOST_NOT_FOUND: Host couldn't be found (remote operations).
  410. * @G_IO_ERROR_WOULD_MERGE: Operation would merge files.
  411. * @G_IO_ERROR_FAILED_HANDLED: Operation failed and a helper program has
  412. * already interacted with the user. Do not display any error dialog.
  413. * @G_IO_ERROR_TOO_MANY_OPEN_FILES: The current process has too many files
  414. * open and can't open any more. Duplicate descriptors do count toward
  415. * this limit. Since 2.20
  416. * @G_IO_ERROR_NOT_INITIALIZED: The object has not been initialized. Since 2.22
  417. * @G_IO_ERROR_ADDRESS_IN_USE: The requested address is already in use. Since 2.22
  418. * @G_IO_ERROR_PARTIAL_INPUT: Need more input to finish operation. Since 2.24
  419. * @G_IO_ERROR_INVALID_DATA: The input data was invalid. Since 2.24
  420. * @G_IO_ERROR_DBUS_ERROR: A remote object generated an error that
  421. * doesn't correspond to a locally registered #GError error
  422. * domain. Use g_dbus_error_get_remote_error() to extract the D-Bus
  423. * error name and g_dbus_error_strip_remote_error() to fix up the
  424. * message so it matches what was received on the wire. Since 2.26.
  425. * @G_IO_ERROR_HOST_UNREACHABLE: Host unreachable. Since 2.26
  426. * @G_IO_ERROR_NETWORK_UNREACHABLE: Network unreachable. Since 2.26
  427. * @G_IO_ERROR_CONNECTION_REFUSED: Connection refused. Since 2.26
  428. * @G_IO_ERROR_PROXY_FAILED: Connection to proxy server failed. Since 2.26
  429. * @G_IO_ERROR_PROXY_AUTH_FAILED: Proxy authentication failed. Since 2.26
  430. * @G_IO_ERROR_PROXY_NEED_AUTH: Proxy server needs authentication. Since 2.26
  431. * @G_IO_ERROR_PROXY_NOT_ALLOWED: Proxy connection is not allowed by ruleset.
  432. * Since 2.26
  433. * @G_IO_ERROR_BROKEN_PIPE: Broken pipe. Since 2.36
  434. *
  435. * Error codes returned by GIO functions.
  436. *
  437. * Note that this domain may be extended in future GLib releases. In
  438. * general, new error codes either only apply to new APIs, or else
  439. * replace #G_IO_ERROR_FAILED in cases that were not explicitly
  440. * distinguished before. You should therefore avoid writing code like
  441. * |[<!-- language="C" -->
  442. * if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED))
  443. * {
  444. * // Assume that this is EPRINTERONFIRE
  445. * ...
  446. * }
  447. * ]|
  448. * but should instead treat all unrecognized error codes the same as
  449. * #G_IO_ERROR_FAILED.
  450. **/
  451. typedef enum {
  452. G_IO_ERROR_FAILED,
  453. G_IO_ERROR_NOT_FOUND,
  454. G_IO_ERROR_EXISTS,
  455. G_IO_ERROR_IS_DIRECTORY,
  456. G_IO_ERROR_NOT_DIRECTORY,
  457. G_IO_ERROR_NOT_EMPTY,
  458. G_IO_ERROR_NOT_REGULAR_FILE,
  459. G_IO_ERROR_NOT_SYMBOLIC_LINK,
  460. G_IO_ERROR_NOT_MOUNTABLE_FILE,
  461. G_IO_ERROR_FILENAME_TOO_LONG,
  462. G_IO_ERROR_INVALID_FILENAME,
  463. G_IO_ERROR_TOO_MANY_LINKS,
  464. G_IO_ERROR_NO_SPACE,
  465. G_IO_ERROR_INVALID_ARGUMENT,
  466. G_IO_ERROR_PERMISSION_DENIED,
  467. G_IO_ERROR_NOT_SUPPORTED,
  468. G_IO_ERROR_NOT_MOUNTED,
  469. G_IO_ERROR_ALREADY_MOUNTED,
  470. G_IO_ERROR_CLOSED,
  471. G_IO_ERROR_CANCELLED,
  472. G_IO_ERROR_PENDING,
  473. G_IO_ERROR_READ_ONLY,
  474. G_IO_ERROR_CANT_CREATE_BACKUP,
  475. G_IO_ERROR_WRONG_ETAG,
  476. G_IO_ERROR_TIMED_OUT,
  477. G_IO_ERROR_WOULD_RECURSE,
  478. G_IO_ERROR_BUSY,
  479. G_IO_ERROR_WOULD_BLOCK,
  480. G_IO_ERROR_HOST_NOT_FOUND,
  481. G_IO_ERROR_WOULD_MERGE,
  482. G_IO_ERROR_FAILED_HANDLED,
  483. G_IO_ERROR_TOO_MANY_OPEN_FILES,
  484. G_IO_ERROR_NOT_INITIALIZED,
  485. G_IO_ERROR_ADDRESS_IN_USE,
  486. G_IO_ERROR_PARTIAL_INPUT,
  487. G_IO_ERROR_INVALID_DATA,
  488. G_IO_ERROR_DBUS_ERROR,
  489. G_IO_ERROR_HOST_UNREACHABLE,
  490. G_IO_ERROR_NETWORK_UNREACHABLE,
  491. G_IO_ERROR_CONNECTION_REFUSED,
  492. G_IO_ERROR_PROXY_FAILED,
  493. G_IO_ERROR_PROXY_AUTH_FAILED,
  494. G_IO_ERROR_PROXY_NEED_AUTH,
  495. G_IO_ERROR_PROXY_NOT_ALLOWED,
  496. G_IO_ERROR_BROKEN_PIPE
  497. } GIOErrorEnum;
  498. /**
  499. * GAskPasswordFlags:
  500. * @G_ASK_PASSWORD_NEED_PASSWORD: operation requires a password.
  501. * @G_ASK_PASSWORD_NEED_USERNAME: operation requires a username.
  502. * @G_ASK_PASSWORD_NEED_DOMAIN: operation requires a domain.
  503. * @G_ASK_PASSWORD_SAVING_SUPPORTED: operation supports saving settings.
  504. * @G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: operation supports anonymous users.
  505. *
  506. * #GAskPasswordFlags are used to request specific information from the
  507. * user, or to notify the user of their choices in an authentication
  508. * situation.
  509. **/
  510. typedef enum {
  511. G_ASK_PASSWORD_NEED_PASSWORD = (1 << 0),
  512. G_ASK_PASSWORD_NEED_USERNAME = (1 << 1),
  513. G_ASK_PASSWORD_NEED_DOMAIN = (1 << 2),
  514. G_ASK_PASSWORD_SAVING_SUPPORTED = (1 << 3),
  515. G_ASK_PASSWORD_ANONYMOUS_SUPPORTED = (1 << 4)
  516. } GAskPasswordFlags;
  517. /**
  518. * GPasswordSave:
  519. * @G_PASSWORD_SAVE_NEVER: never save a password.
  520. * @G_PASSWORD_SAVE_FOR_SESSION: save a password for the session.
  521. * @G_PASSWORD_SAVE_PERMANENTLY: save a password permanently.
  522. *
  523. * #GPasswordSave is used to indicate the lifespan of a saved password.
  524. *
  525. * #Gvfs stores passwords in the Gnome keyring when this flag allows it
  526. * to, and later retrieves it again from there.
  527. **/
  528. typedef enum {
  529. G_PASSWORD_SAVE_NEVER,
  530. G_PASSWORD_SAVE_FOR_SESSION,
  531. G_PASSWORD_SAVE_PERMANENTLY
  532. } GPasswordSave;
  533. /**
  534. * GMountOperationResult:
  535. * @G_MOUNT_OPERATION_HANDLED: The request was fulfilled and the
  536. * user specified data is now available
  537. * @G_MOUNT_OPERATION_ABORTED: The user requested the mount operation
  538. * to be aborted
  539. * @G_MOUNT_OPERATION_UNHANDLED: The request was unhandled (i.e. not
  540. * implemented)
  541. *
  542. * #GMountOperationResult is returned as a result when a request for
  543. * information is send by the mounting operation.
  544. **/
  545. typedef enum {
  546. G_MOUNT_OPERATION_HANDLED,
  547. G_MOUNT_OPERATION_ABORTED,
  548. G_MOUNT_OPERATION_UNHANDLED
  549. } GMountOperationResult;
  550. /**
  551. * GOutputStreamSpliceFlags:
  552. * @G_OUTPUT_STREAM_SPLICE_NONE: Do not close either stream.
  553. * @G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: Close the source stream after
  554. * the splice.
  555. * @G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: Close the target stream after
  556. * the splice.
  557. *
  558. * GOutputStreamSpliceFlags determine how streams should be spliced.
  559. **/
  560. typedef enum {
  561. G_OUTPUT_STREAM_SPLICE_NONE = 0,
  562. G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE = (1 << 0),
  563. G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET = (1 << 1)
  564. } GOutputStreamSpliceFlags;
  565. /**
  566. * GIOStreamSpliceFlags:
  567. * @G_IO_STREAM_SPLICE_NONE: Do not close either stream.
  568. * @G_IO_STREAM_SPLICE_CLOSE_STREAM1: Close the first stream after
  569. * the splice.
  570. * @G_IO_STREAM_SPLICE_CLOSE_STREAM2: Close the second stream after
  571. * the splice.
  572. * @G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: Wait for both splice operations to finish
  573. * before calling the callback.
  574. *
  575. * GIOStreamSpliceFlags determine how streams should be spliced.
  576. *
  577. * Since: 2.28
  578. **/
  579. typedef enum {
  580. G_IO_STREAM_SPLICE_NONE = 0,
  581. G_IO_STREAM_SPLICE_CLOSE_STREAM1 = (1 << 0),
  582. G_IO_STREAM_SPLICE_CLOSE_STREAM2 = (1 << 1),
  583. G_IO_STREAM_SPLICE_WAIT_FOR_BOTH = (1 << 2)
  584. } GIOStreamSpliceFlags;
  585. /**
  586. * GEmblemOrigin:
  587. * @G_EMBLEM_ORIGIN_UNKNOWN: Emblem of unknown origin
  588. * @G_EMBLEM_ORIGIN_DEVICE: Emblem adds device-specific information
  589. * @G_EMBLEM_ORIGIN_LIVEMETADATA: Emblem depicts live metadata, such as "readonly"
  590. * @G_EMBLEM_ORIGIN_TAG: Emblem comes from a user-defined tag, e.g. set by nautilus (in the future)
  591. *
  592. * GEmblemOrigin is used to add information about the origin of the emblem
  593. * to #GEmblem.
  594. *
  595. * Since: 2.18
  596. */
  597. typedef enum {
  598. G_EMBLEM_ORIGIN_UNKNOWN,
  599. G_EMBLEM_ORIGIN_DEVICE,
  600. G_EMBLEM_ORIGIN_LIVEMETADATA,
  601. G_EMBLEM_ORIGIN_TAG
  602. } GEmblemOrigin;
  603. /**
  604. * GResolverError:
  605. * @G_RESOLVER_ERROR_NOT_FOUND: the requested name/address/service was not
  606. * found
  607. * @G_RESOLVER_ERROR_TEMPORARY_FAILURE: the requested information could not
  608. * be looked up due to a network error or similar problem
  609. * @G_RESOLVER_ERROR_INTERNAL: unknown error
  610. *
  611. * An error code used with %G_RESOLVER_ERROR in a #GError returned
  612. * from a #GResolver routine.
  613. *
  614. * Since: 2.22
  615. */
  616. typedef enum {
  617. G_RESOLVER_ERROR_NOT_FOUND,
  618. G_RESOLVER_ERROR_TEMPORARY_FAILURE,
  619. G_RESOLVER_ERROR_INTERNAL
  620. } GResolverError;
  621. /**
  622. * GResolverRecordType:
  623. * @G_RESOLVER_RECORD_SRV: lookup DNS SRV records for a domain
  624. * @G_RESOLVER_RECORD_MX: lookup DNS MX records for a domain
  625. * @G_RESOLVER_RECORD_TXT: lookup DNS TXT records for a name
  626. * @G_RESOLVER_RECORD_SOA: lookup DNS SOA records for a zone
  627. * @G_RESOLVER_RECORD_NS: lookup DNS NS records for a domain
  628. *
  629. * The type of record that g_resolver_lookup_records() or
  630. * g_resolver_lookup_records_async() should retrieve. The records are returned
  631. * as lists of #GVariant tuples. Each record type has different values in
  632. * the variant tuples returned.
  633. *
  634. * %G_RESOLVER_RECORD_SRV records are returned as variants with the signature
  635. * '(qqqs)', containing a guint16 with the priority, a guint16 with the
  636. * weight, a guint16 with the port, and a string of the hostname.
  637. *
  638. * %G_RESOLVER_RECORD_MX records are returned as variants with the signature
  639. * '(qs)', representing a guint16 with the preference, and a string containing
  640. * the mail exchanger hostname.
  641. *
  642. * %G_RESOLVER_RECORD_TXT records are returned as variants with the signature
  643. * '(as)', representing an array of the strings in the text record.
  644. *
  645. * %G_RESOLVER_RECORD_SOA records are returned as variants with the signature
  646. * '(ssuuuuu)', representing a string containing the primary name server, a
  647. * string containing the administrator, the serial as a guint32, the refresh
  648. * interval as guint32, the retry interval as a guint32, the expire timeout
  649. * as a guint32, and the ttl as a guint32.
  650. *
  651. * %G_RESOLVER_RECORD_NS records are returned as variants with the signature
  652. * '(s)', representing a string of the hostname of the name server.
  653. *
  654. * Since: 2.34
  655. */
  656. typedef enum {
  657. G_RESOLVER_RECORD_SRV = 1,
  658. G_RESOLVER_RECORD_MX,
  659. G_RESOLVER_RECORD_TXT,
  660. G_RESOLVER_RECORD_SOA,
  661. G_RESOLVER_RECORD_NS
  662. } GResolverRecordType;
  663. /**
  664. * GResourceError:
  665. * @G_RESOURCE_ERROR_NOT_FOUND: no file was found at the requested path
  666. * @G_RESOURCE_ERROR_INTERNAL: unknown error
  667. *
  668. * An error code used with %G_RESOURCE_ERROR in a #GError returned
  669. * from a #GResource routine.
  670. *
  671. * Since: 2.32
  672. */
  673. typedef enum {
  674. G_RESOURCE_ERROR_NOT_FOUND,
  675. G_RESOURCE_ERROR_INTERNAL
  676. } GResourceError;
  677. /**
  678. * GResourceFlags:
  679. * @G_RESOURCE_FLAGS_NONE: No flags set.
  680. * @G_RESOURCE_FLAGS_COMPRESSED: The file is compressed.
  681. *
  682. * GResourceFlags give information about a particular file inside a resource
  683. * bundle.
  684. *
  685. * Since: 2.32
  686. **/
  687. typedef enum {
  688. G_RESOURCE_FLAGS_NONE = 0,
  689. G_RESOURCE_FLAGS_COMPRESSED = (1<<0)
  690. } GResourceFlags;
  691. /**
  692. * GResourceLookupFlags:
  693. * @G_RESOURCE_LOOKUP_FLAGS_NONE: No flags set.
  694. *
  695. * GResourceLookupFlags determine how resource path lookups are handled.
  696. *
  697. * Since: 2.32
  698. **/
  699. typedef enum /*< flags >*/ {
  700. G_RESOURCE_LOOKUP_FLAGS_NONE = 0
  701. } GResourceLookupFlags;
  702. /**
  703. * GSocketFamily:
  704. * @G_SOCKET_FAMILY_INVALID: no address family
  705. * @G_SOCKET_FAMILY_IPV4: the IPv4 family
  706. * @G_SOCKET_FAMILY_IPV6: the IPv6 family
  707. * @G_SOCKET_FAMILY_UNIX: the UNIX domain family
  708. *
  709. * The protocol family of a #GSocketAddress. (These values are
  710. * identical to the system defines %AF_INET, %AF_INET6 and %AF_UNIX,
  711. * if available.)
  712. *
  713. * Since: 2.22
  714. */
  715. typedef enum {
  716. G_SOCKET_FAMILY_INVALID,
  717. G_SOCKET_FAMILY_UNIX = GLIB_SYSDEF_AF_UNIX,
  718. G_SOCKET_FAMILY_IPV4 = GLIB_SYSDEF_AF_INET,
  719. G_SOCKET_FAMILY_IPV6 = GLIB_SYSDEF_AF_INET6
  720. } GSocketFamily;
  721. /**
  722. * GSocketType:
  723. * @G_SOCKET_TYPE_INVALID: Type unknown or wrong
  724. * @G_SOCKET_TYPE_STREAM: Reliable connection-based byte streams (e.g. TCP).
  725. * @G_SOCKET_TYPE_DATAGRAM: Connectionless, unreliable datagram passing.
  726. * (e.g. UDP)
  727. * @G_SOCKET_TYPE_SEQPACKET: Reliable connection-based passing of datagrams
  728. * of fixed maximum length (e.g. SCTP).
  729. *
  730. * Flags used when creating a #GSocket. Some protocols may not implement
  731. * all the socket types.
  732. *
  733. * Since: 2.22
  734. */
  735. typedef enum
  736. {
  737. G_SOCKET_TYPE_INVALID,
  738. G_SOCKET_TYPE_STREAM,
  739. G_SOCKET_TYPE_DATAGRAM,
  740. G_SOCKET_TYPE_SEQPACKET
  741. } GSocketType;
  742. /**
  743. * GSocketMsgFlags:
  744. * @G_SOCKET_MSG_NONE: No flags.
  745. * @G_SOCKET_MSG_OOB: Request to send/receive out of band data.
  746. * @G_SOCKET_MSG_PEEK: Read data from the socket without removing it from
  747. * the queue.
  748. * @G_SOCKET_MSG_DONTROUTE: Don't use a gateway to send out the packet,
  749. * only send to hosts on directly connected networks.
  750. *
  751. * Flags used in g_socket_receive_message() and g_socket_send_message().
  752. * The flags listed in the enum are some commonly available flags, but the
  753. * values used for them are the same as on the platform, and any other flags
  754. * are passed in/out as is. So to use a platform specific flag, just include
  755. * the right system header and pass in the flag.
  756. *
  757. * Since: 2.22
  758. */
  759. typedef enum /*< flags >*/
  760. {
  761. G_SOCKET_MSG_NONE,
  762. G_SOCKET_MSG_OOB = GLIB_SYSDEF_MSG_OOB,
  763. G_SOCKET_MSG_PEEK = GLIB_SYSDEF_MSG_PEEK,
  764. G_SOCKET_MSG_DONTROUTE = GLIB_SYSDEF_MSG_DONTROUTE
  765. } GSocketMsgFlags;
  766. /**
  767. * GSocketProtocol:
  768. * @G_SOCKET_PROTOCOL_UNKNOWN: The protocol type is unknown
  769. * @G_SOCKET_PROTOCOL_DEFAULT: The default protocol for the family/type
  770. * @G_SOCKET_PROTOCOL_TCP: TCP over IP
  771. * @G_SOCKET_PROTOCOL_UDP: UDP over IP
  772. * @G_SOCKET_PROTOCOL_SCTP: SCTP over IP
  773. *
  774. * A protocol identifier is specified when creating a #GSocket, which is a
  775. * family/type specific identifier, where 0 means the default protocol for
  776. * the particular family/type.
  777. *
  778. * This enum contains a set of commonly available and used protocols. You
  779. * can also pass any other identifiers handled by the platform in order to
  780. * use protocols not listed here.
  781. *
  782. * Since: 2.22
  783. */
  784. typedef enum {
  785. G_SOCKET_PROTOCOL_UNKNOWN = -1,
  786. G_SOCKET_PROTOCOL_DEFAULT = 0,
  787. G_SOCKET_PROTOCOL_TCP = 6,
  788. G_SOCKET_PROTOCOL_UDP = 17,
  789. G_SOCKET_PROTOCOL_SCTP = 132
  790. } GSocketProtocol;
  791. /**
  792. * GZlibCompressorFormat:
  793. * @G_ZLIB_COMPRESSOR_FORMAT_ZLIB: deflate compression with zlib header
  794. * @G_ZLIB_COMPRESSOR_FORMAT_GZIP: gzip file format
  795. * @G_ZLIB_COMPRESSOR_FORMAT_RAW: deflate compression with no header
  796. *
  797. * Used to select the type of data format to use for #GZlibDecompressor
  798. * and #GZlibCompressor.
  799. *
  800. * Since: 2.24
  801. */
  802. typedef enum {
  803. G_ZLIB_COMPRESSOR_FORMAT_ZLIB,
  804. G_ZLIB_COMPRESSOR_FORMAT_GZIP,
  805. G_ZLIB_COMPRESSOR_FORMAT_RAW
  806. } GZlibCompressorFormat;
  807. /**
  808. * GUnixSocketAddressType:
  809. * @G_UNIX_SOCKET_ADDRESS_INVALID: invalid
  810. * @G_UNIX_SOCKET_ADDRESS_ANONYMOUS: anonymous
  811. * @G_UNIX_SOCKET_ADDRESS_PATH: a filesystem path
  812. * @G_UNIX_SOCKET_ADDRESS_ABSTRACT: an abstract name
  813. * @G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: an abstract name, 0-padded
  814. * to the full length of a unix socket name
  815. *
  816. * The type of name used by a #GUnixSocketAddress.
  817. * %G_UNIX_SOCKET_ADDRESS_PATH indicates a traditional unix domain
  818. * socket bound to a filesystem path. %G_UNIX_SOCKET_ADDRESS_ANONYMOUS
  819. * indicates a socket not bound to any name (eg, a client-side socket,
  820. * or a socket created with socketpair()).
  821. *
  822. * For abstract sockets, there are two incompatible ways of naming
  823. * them; the man pages suggest using the entire `struct sockaddr_un`
  824. * as the name, padding the unused parts of the %sun_path field with
  825. * zeroes; this corresponds to %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED.
  826. * However, many programs instead just use a portion of %sun_path, and
  827. * pass an appropriate smaller length to bind() or connect(). This is
  828. * %G_UNIX_SOCKET_ADDRESS_ABSTRACT.
  829. *
  830. * Since: 2.26
  831. */
  832. typedef enum {
  833. G_UNIX_SOCKET_ADDRESS_INVALID,
  834. G_UNIX_SOCKET_ADDRESS_ANONYMOUS,
  835. G_UNIX_SOCKET_ADDRESS_PATH,
  836. G_UNIX_SOCKET_ADDRESS_ABSTRACT,
  837. G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED
  838. } GUnixSocketAddressType;
  839. /**
  840. * GBusType:
  841. * @G_BUS_TYPE_STARTER: An alias for the message bus that activated the process, if any.
  842. * @G_BUS_TYPE_NONE: Not a message bus.
  843. * @G_BUS_TYPE_SYSTEM: The system-wide message bus.
  844. * @G_BUS_TYPE_SESSION: The login session message bus.
  845. *
  846. * An enumeration for well-known message buses.
  847. *
  848. * Since: 2.26
  849. */
  850. typedef enum
  851. {
  852. G_BUS_TYPE_STARTER = -1,
  853. G_BUS_TYPE_NONE = 0,
  854. G_BUS_TYPE_SYSTEM = 1,
  855. G_BUS_TYPE_SESSION = 2
  856. } GBusType;
  857. /**
  858. * GBusNameOwnerFlags:
  859. * @G_BUS_NAME_OWNER_FLAGS_NONE: No flags set.
  860. * @G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: Allow another message bus connection to claim the name.
  861. * @G_BUS_NAME_OWNER_FLAGS_REPLACE: If another message bus connection owns the name and have
  862. * specified #G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT, then take the name from the other connection.
  863. *
  864. * Flags used in g_bus_own_name().
  865. *
  866. * Since: 2.26
  867. */
  868. typedef enum
  869. {
  870. G_BUS_NAME_OWNER_FLAGS_NONE = 0, /*< nick=none >*/
  871. G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT = (1<<0), /*< nick=allow-replacement >*/
  872. G_BUS_NAME_OWNER_FLAGS_REPLACE = (1<<1) /*< nick=replace >*/
  873. } GBusNameOwnerFlags;
  874. /**
  875. * GBusNameWatcherFlags:
  876. * @G_BUS_NAME_WATCHER_FLAGS_NONE: No flags set.
  877. * @G_BUS_NAME_WATCHER_FLAGS_AUTO_START: If no-one owns the name when
  878. * beginning to watch the name, ask the bus to launch an owner for the
  879. * name.
  880. *
  881. * Flags used in g_bus_watch_name().
  882. *
  883. * Since: 2.26
  884. */
  885. typedef enum
  886. {
  887. G_BUS_NAME_WATCHER_FLAGS_NONE = 0,
  888. G_BUS_NAME_WATCHER_FLAGS_AUTO_START = (1<<0)
  889. } GBusNameWatcherFlags;
  890. /**
  891. * GDBusProxyFlags:
  892. * @G_DBUS_PROXY_FLAGS_NONE: No flags set.
  893. * @G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: Don't load properties.
  894. * @G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: Don't connect to signals on the remote object.
  895. * @G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: If not set and the proxy if for a well-known name,
  896. * then request the bus to launch an owner for the name if no-one owns the name. This flag can
  897. * only be used in proxies for well-known names.
  898. * @G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: If set, the property value for any <emphasis>invalidated property</emphasis> will be (asynchronously) retrieved upon receiving the <ulink url="http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties">PropertiesChanged</ulink> D-Bus signal and the property will not cause emission of the #GDBusProxy::g-properties-changed signal. When the value is received the #GDBusProxy::g-properties-changed signal is emitted for the property along with the retrieved value. Since 2.32.
  899. * @G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: If the proxy is for a well-known name,
  900. * do not ask the bus to launch an owner during proxy initialization, but allow it to be
  901. * autostarted by a method call. This flag is only meaningful in proxies for well-known names,
  902. * and only if %G_DBUS_PROXY_FLAGS_DO_NOT_AUTOSTART is not also specified.
  903. *
  904. * Flags used when constructing an instance of a #GDBusProxy derived class.
  905. *
  906. * Since: 2.26
  907. */
  908. typedef enum
  909. {
  910. G_DBUS_PROXY_FLAGS_NONE = 0,
  911. G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES = (1<<0),
  912. G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS = (1<<1),
  913. G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START = (1<<2),
  914. G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES = (1<<3),
  915. G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION = (1<<4)
  916. } GDBusProxyFlags;
  917. /**
  918. * GDBusError:
  919. * @G_DBUS_ERROR_FAILED:
  920. * A generic error; "something went wrong" - see the error message for
  921. * more.
  922. * @G_DBUS_ERROR_NO_MEMORY:
  923. * There was not enough memory to complete an operation.
  924. * @G_DBUS_ERROR_SERVICE_UNKNOWN:
  925. * The bus doesn't know how to launch a service to supply the bus name
  926. * you wanted.
  927. * @G_DBUS_ERROR_NAME_HAS_NO_OWNER:
  928. * The bus name you referenced doesn't exist (i.e. no application owns
  929. * it).
  930. * @G_DBUS_ERROR_NO_REPLY:
  931. * No reply to a message expecting one, usually means a timeout occurred.
  932. * @G_DBUS_ERROR_IO_ERROR:
  933. * Something went wrong reading or writing to a socket, for example.
  934. * @G_DBUS_ERROR_BAD_ADDRESS:
  935. * A D-Bus bus address was malformed.
  936. * @G_DBUS_ERROR_NOT_SUPPORTED:
  937. * Requested operation isn't supported (like ENOSYS on UNIX).
  938. * @G_DBUS_ERROR_LIMITS_EXCEEDED:
  939. * Some limited resource is exhausted.
  940. * @G_DBUS_ERROR_ACCESS_DENIED:
  941. * Security restrictions don't allow doing what you're trying to do.
  942. * @G_DBUS_ERROR_AUTH_FAILED:
  943. * Authentication didn't work.
  944. * @G_DBUS_ERROR_NO_SERVER:
  945. * Unable to connect to server (probably caused by ECONNREFUSED on a
  946. * socket).
  947. * @G_DBUS_ERROR_TIMEOUT:
  948. * Certain timeout errors, possibly ETIMEDOUT on a socket. Note that
  949. * %G_DBUS_ERROR_NO_REPLY is used for message reply timeouts. Warning:
  950. * this is confusingly-named given that %G_DBUS_ERROR_TIMED_OUT also
  951. * exists. We can't fix it for compatibility reasons so just be
  952. * careful.
  953. * @G_DBUS_ERROR_NO_NETWORK:
  954. * No network access (probably ENETUNREACH on a socket).
  955. * @G_DBUS_ERROR_ADDRESS_IN_USE:
  956. * Can't bind a socket since its address is in use (i.e. EADDRINUSE).
  957. * @G_DBUS_ERROR_DISCONNECTED:
  958. * The connection is disconnected and you're trying to use it.
  959. * @G_DBUS_ERROR_INVALID_ARGS:
  960. * Invalid arguments passed to a method call.
  961. * @G_DBUS_ERROR_FILE_NOT_FOUND:
  962. * Missing file.
  963. * @G_DBUS_ERROR_FILE_EXISTS:
  964. * Existing file and the operation you're using does not silently overwrite.
  965. * @G_DBUS_ERROR_UNKNOWN_METHOD:
  966. * Method name you invoked isn't known by the object you invoked it on.
  967. * @G_DBUS_ERROR_TIMED_OUT:
  968. * Certain timeout errors, e.g. while starting a service. Warning: this is
  969. * confusingly-named given that %G_DBUS_ERROR_TIMEOUT also exists. We
  970. * can't fix it for compatibility reasons so just be careful.
  971. * @G_DBUS_ERROR_MATCH_RULE_NOT_FOUND:
  972. * Tried to remove or modify a match rule that didn't exist.
  973. * @G_DBUS_ERROR_MATCH_RULE_INVALID:
  974. * The match rule isn't syntactically valid.
  975. * @G_DBUS_ERROR_SPAWN_EXEC_FAILED:
  976. * While starting a new process, the exec() call failed.
  977. * @G_DBUS_ERROR_SPAWN_FORK_FAILED:
  978. * While starting a new process, the fork() call failed.
  979. * @G_DBUS_ERROR_SPAWN_CHILD_EXITED:
  980. * While starting a new process, the child exited with a status code.
  981. * @G_DBUS_ERROR_SPAWN_CHILD_SIGNALED:
  982. * While starting a new process, the child exited on a signal.
  983. * @G_DBUS_ERROR_SPAWN_FAILED:
  984. * While starting a new process, something went wrong.
  985. * @G_DBUS_ERROR_SPAWN_SETUP_FAILED:
  986. * We failed to setup the environment correctly.
  987. * @G_DBUS_ERROR_SPAWN_CONFIG_INVALID:
  988. * We failed to setup the config parser correctly.
  989. * @G_DBUS_ERROR_SPAWN_SERVICE_INVALID:
  990. * Bus name was not valid.
  991. * @G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND:
  992. * Service file not found in system-services directory.
  993. * @G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID:
  994. * Permissions are incorrect on the setuid helper.
  995. * @G_DBUS_ERROR_SPAWN_FILE_INVALID:
  996. * Service file invalid (Name, User or Exec missing).
  997. * @G_DBUS_ERROR_SPAWN_NO_MEMORY:
  998. * Tried to get a UNIX process ID and it wasn't available.
  999. * @G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN:
  1000. * Tried to get a UNIX process ID and it wasn't available.
  1001. * @G_DBUS_ERROR_INVALID_SIGNATURE:
  1002. * A type signature is not valid.
  1003. * @G_DBUS_ERROR_INVALID_FILE_CONTENT:
  1004. * A file contains invalid syntax or is otherwise broken.
  1005. * @G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN:
  1006. * Asked for SELinux security context and it wasn't available.
  1007. * @G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN:
  1008. * Asked for ADT audit data and it wasn't available.
  1009. * @G_DBUS_ERROR_OBJECT_PATH_IN_USE:
  1010. * There's already an object with the requested object path.
  1011. *
  1012. * Error codes for the %G_DBUS_ERROR error domain.
  1013. *
  1014. * Since: 2.26
  1015. */
  1016. typedef enum
  1017. {
  1018. /* Well-known errors in the org.freedesktop.DBus.Error namespace */
  1019. G_DBUS_ERROR_FAILED, /* org.freedesktop.DBus.Error.Failed */
  1020. G_DBUS_ERROR_NO_MEMORY, /* org.freedesktop.DBus.Error.NoMemory */
  1021. G_DBUS_ERROR_SERVICE_UNKNOWN, /* org.freedesktop.DBus.Error.ServiceUnknown */
  1022. G_DBUS_ERROR_NAME_HAS_NO_OWNER, /* org.freedesktop.DBus.Error.NameHasNoOwner */
  1023. G_DBUS_ERROR_NO_REPLY, /* org.freedesktop.DBus.Error.NoReply */
  1024. G_DBUS_ERROR_IO_ERROR, /* org.freedesktop.DBus.Error.IOError */
  1025. G_DBUS_ERROR_BAD_ADDRESS, /* org.freedesktop.DBus.Error.BadAddress */
  1026. G_DBUS_ERROR_NOT_SUPPORTED, /* org.freedesktop.DBus.Error.NotSupported */
  1027. G_DBUS_ERROR_LIMITS_EXCEEDED, /* org.freedesktop.DBus.Error.LimitsExceeded */
  1028. G_DBUS_ERROR_ACCESS_DENIED, /* org.freedesktop.DBus.Error.AccessDenied */
  1029. G_DBUS_ERROR_AUTH_FAILED, /* org.freedesktop.DBus.Error.AuthFailed */
  1030. G_DBUS_ERROR_NO_SERVER, /* org.freedesktop.DBus.Error.NoServer */
  1031. G_DBUS_ERROR_TIMEOUT, /* org.freedesktop.DBus.Error.Timeout */
  1032. G_DBUS_ERROR_NO_NETWORK, /* org.freedesktop.DBus.Error.NoNetwork */
  1033. G_DBUS_ERROR_ADDRESS_IN_USE, /* org.freedesktop.DBus.Error.AddressInUse */
  1034. G_DBUS_ERROR_DISCONNECTED, /* org.freedesktop.DBus.Error.Disconnected */
  1035. G_DBUS_ERROR_INVALID_ARGS, /* org.freedesktop.DBus.Error.InvalidArgs */
  1036. G_DBUS_ERROR_FILE_NOT_FOUND, /* org.freedesktop.DBus.Error.FileNotFound */
  1037. G_DBUS_ERROR_FILE_EXISTS, /* org.freedesktop.DBus.Error.FileExists */
  1038. G_DBUS_ERROR_UNKNOWN_METHOD, /* org.freedesktop.DBus.Error.UnknownMethod */
  1039. G_DBUS_ERROR_TIMED_OUT, /* org.freedesktop.DBus.Error.TimedOut */
  1040. G_DBUS_ERROR_MATCH_RULE_NOT_FOUND, /* org.freedesktop.DBus.Error.MatchRuleNotFound */
  1041. G_DBUS_ERROR_MATCH_RULE_INVALID, /* org.freedesktop.DBus.Error.MatchRuleInvalid */
  1042. G_DBUS_ERROR_SPAWN_EXEC_FAILED, /* org.freedesktop.DBus.Error.Spawn.ExecFailed */
  1043. G_DBUS_ERROR_SPAWN_FORK_FAILED, /* org.freedesktop.DBus.Error.Spawn.ForkFailed */
  1044. G_DBUS_ERROR_SPAWN_CHILD_EXITED, /* org.freedesktop.DBus.Error.Spawn.ChildExited */
  1045. G_DBUS_ERROR_SPAWN_CHILD_SIGNALED, /* org.freedesktop.DBus.Error.Spawn.ChildSignaled */
  1046. G_DBUS_ERROR_SPAWN_FAILED, /* org.freedesktop.DBus.Error.Spawn.Failed */
  1047. G_DBUS_ERROR_SPAWN_SETUP_FAILED, /* org.freedesktop.DBus.Error.Spawn.FailedToSetup */
  1048. G_DBUS_ERROR_SPAWN_CONFIG_INVALID, /* org.freedesktop.DBus.Error.Spawn.ConfigInvalid */
  1049. G_DBUS_ERROR_SPAWN_SERVICE_INVALID, /* org.freedesktop.DBus.Error.Spawn.ServiceNotValid */
  1050. G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND, /* org.freedesktop.DBus.Error.Spawn.ServiceNotFound */
  1051. G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID, /* org.freedesktop.DBus.Error.Spawn.PermissionsInvalid */
  1052. G_DBUS_ERROR_SPAWN_FILE_INVALID, /* org.freedesktop.DBus.Error.Spawn.FileInvalid */
  1053. G_DBUS_ERROR_SPAWN_NO_MEMORY, /* org.freedesktop.DBus.Error.Spawn.NoMemory */
  1054. G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN, /* org.freedesktop.DBus.Error.UnixProcessIdUnknown */
  1055. G_DBUS_ERROR_INVALID_SIGNATURE, /* org.freedesktop.DBus.Error.InvalidSignature */
  1056. G_DBUS_ERROR_INVALID_FILE_CONTENT, /* org.freedesktop.DBus.Error.InvalidFileContent */
  1057. G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN, /* org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown */
  1058. G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN, /* org.freedesktop.DBus.Error.AdtAuditDataUnknown */
  1059. G_DBUS_ERROR_OBJECT_PATH_IN_USE /* org.freedesktop.DBus.Error.ObjectPathInUse */
  1060. } GDBusError;
  1061. /* Remember to update g_dbus_error_quark() in gdbuserror.c if you extend this enumeration */
  1062. /**
  1063. * GDBusConnectionFlags:
  1064. * @G_DBUS_CONNECTION_FLAGS_NONE: No flags set.
  1065. * @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: Perform authentication against server.
  1066. * @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: Perform authentication against client.
  1067. * @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: When
  1068. * authenticating as a server, allow the anonymous authentication
  1069. * method.
  1070. * @G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: Pass this flag if connecting to a peer that is a
  1071. * message bus. This means that the Hello() method will be invoked as part of the connection setup.
  1072. * @G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: If set, processing of D-Bus messages is
  1073. * delayed until g_dbus_connection_start_message_processing() is called.
  1074. *
  1075. * Flags used when creating a new #GDBusConnection.
  1076. *
  1077. * Since: 2.26
  1078. */
  1079. typedef enum {
  1080. G_DBUS_CONNECTION_FLAGS_NONE = 0,
  1081. G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT = (1<<0),
  1082. G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER = (1<<1),
  1083. G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = (1<<2),
  1084. G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION = (1<<3),
  1085. G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING = (1<<4)
  1086. } GDBusConnectionFlags;
  1087. /**
  1088. * GDBusCapabilityFlags:
  1089. * @G_DBUS_CAPABILITY_FLAGS_NONE: No flags set.
  1090. * @G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: The connection
  1091. * supports exchanging UNIX file descriptors with the remote peer.
  1092. *
  1093. * Capabilities negotiated with the remote peer.
  1094. *
  1095. * Since: 2.26
  1096. */
  1097. typedef enum {
  1098. G_DBUS_CAPABILITY_FLAGS_NONE = 0,
  1099. G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING = (1<<0)
  1100. } GDBusCapabilityFlags;
  1101. /**
  1102. * GDBusCallFlags:
  1103. * @G_DBUS_CALL_FLAGS_NONE: No flags set.
  1104. * @G_DBUS_CALL_FLAGS_NO_AUTO_START: The bus must not launch
  1105. * an owner for the destination name in response to this method
  1106. * invocation.
  1107. *
  1108. * Flags used in g_dbus_connection_call() and similar APIs.
  1109. *
  1110. * Since: 2.26
  1111. */
  1112. typedef enum {
  1113. G_DBUS_CALL_FLAGS_NONE = 0,
  1114. G_DBUS_CALL_FLAGS_NO_AUTO_START = (1<<0)
  1115. } GDBusCallFlags;
  1116. /* (1<<31) is reserved for internal use by GDBusConnection, do not use it. */
  1117. /**
  1118. * GDBusMessageType:
  1119. * @G_DBUS_MESSAGE_TYPE_INVALID: Message is of invalid type.
  1120. * @G_DBUS_MESSAGE_TYPE_METHOD_CALL: Method call.
  1121. * @G_DBUS_MESSAGE_TYPE_METHOD_RETURN: Method reply.
  1122. * @G_DBUS_MESSAGE_TYPE_ERROR: Error reply.
  1123. * @G_DBUS_MESSAGE_TYPE_SIGNAL: Signal emission.
  1124. *
  1125. * Message types used in #GDBusMessage.
  1126. *
  1127. * Since: 2.26
  1128. */
  1129. typedef enum {
  1130. G_DBUS_MESSAGE_TYPE_INVALID,
  1131. G_DBUS_MESSAGE_TYPE_METHOD_CALL,
  1132. G_DBUS_MESSAGE_TYPE_METHOD_RETURN,
  1133. G_DBUS_MESSAGE_TYPE_ERROR,
  1134. G_DBUS_MESSAGE_TYPE_SIGNAL
  1135. } GDBusMessageType;
  1136. /**
  1137. * GDBusMessageFlags:
  1138. * @G_DBUS_MESSAGE_FLAGS_NONE: No flags set.
  1139. * @G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: A reply is not expected.
  1140. * @G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: The bus must not launch an
  1141. * owner for the destination name in response to this message.
  1142. *
  1143. * Message flags used in #GDBusMessage.
  1144. *
  1145. * Since: 2.26
  1146. */
  1147. typedef enum {
  1148. G_DBUS_MESSAGE_FLAGS_NONE = 0,
  1149. G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED = (1<<0),
  1150. G_DBUS_MESSAGE_FLAGS_NO_AUTO_START = (1<<1)
  1151. } GDBusMessageFlags;
  1152. /**
  1153. * GDBusMessageHeaderField:
  1154. * @G_DBUS_MESSAGE_HEADER_FIELD_INVALID: Not a valid header field.
  1155. * @G_DBUS_MESSAGE_HEADER_FIELD_PATH: The object path.
  1156. * @G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: The interface name.
  1157. * @G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: The method or signal name.
  1158. * @G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: The name of the error that occurred.
  1159. * @G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL: The serial number the message is a reply to.
  1160. * @G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: The name the message is intended for.
  1161. * @G_DBUS_MESSAGE_HEADER_FIELD_SENDER: Unique name of the sender of the message (filled in by the bus).
  1162. * @G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: The signature of the message body.
  1163. * @G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: The number of UNIX file descriptors that accompany the message.
  1164. *
  1165. * Header fields used in #GDBusMessage.
  1166. *
  1167. * Since: 2.26
  1168. */
  1169. typedef enum {
  1170. G_DBUS_MESSAGE_HEADER_FIELD_INVALID,
  1171. G_DBUS_MESSAGE_HEADER_FIELD_PATH,
  1172. G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE,
  1173. G_DBUS_MESSAGE_HEADER_FIELD_MEMBER,
  1174. G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME,
  1175. G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL,
  1176. G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION,
  1177. G_DBUS_MESSAGE_HEADER_FIELD_SENDER,
  1178. G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE,
  1179. G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS
  1180. } GDBusMessageHeaderField;
  1181. /**
  1182. * GDBusPropertyInfoFlags:
  1183. * @G_DBUS_PROPERTY_INFO_FLAGS_NONE: No flags set.
  1184. * @G_DBUS_PROPERTY_INFO_FLAGS_READABLE: Property is readable.
  1185. * @G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: Property is writable.
  1186. *
  1187. * Flags describing the access control of a D-Bus property.
  1188. *
  1189. * Since: 2.26
  1190. */
  1191. typedef enum
  1192. {
  1193. G_DBUS_PROPERTY_INFO_FLAGS_NONE = 0,
  1194. G_DBUS_PROPERTY_INFO_FLAGS_READABLE = (1<<0),
  1195. G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE = (1<<1)
  1196. } GDBusPropertyInfoFlags;
  1197. /**
  1198. * GDBusSubtreeFlags:
  1199. * @G_DBUS_SUBTREE_FLAGS_NONE: No flags set.
  1200. * @G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: Method calls to objects not in the enumerated range
  1201. * will still be dispatched. This is useful if you want
  1202. * to dynamically spawn objects in the subtree.
  1203. *
  1204. * Flags passed to g_dbus_connection_register_subtree().
  1205. *
  1206. * Since: 2.26
  1207. */
  1208. typedef enum
  1209. {
  1210. G_DBUS_SUBTREE_FLAGS_NONE = 0,
  1211. G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES = (1<<0)
  1212. } GDBusSubtreeFlags;
  1213. /**
  1214. * GDBusServerFlags:
  1215. * @G_DBUS_SERVER_FLAGS_NONE: No flags set.
  1216. * @G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: All #GDBusServer::new-connection
  1217. * signals will run in separated dedicated threads (see signal for
  1218. * details).
  1219. * @G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: Allow the anonymous
  1220. * authentication method.
  1221. *
  1222. * Flags used when creating a #GDBusServer.
  1223. *
  1224. * Since: 2.26
  1225. */
  1226. typedef enum
  1227. {
  1228. G_DBUS_SERVER_FLAGS_NONE = 0,
  1229. G_DBUS_SERVER_FLAGS_RUN_IN_THREAD = (1<<0),
  1230. G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = (1<<1)
  1231. } GDBusServerFlags;
  1232. /**
  1233. * GDBusSignalFlags:
  1234. * @G_DBUS_SIGNAL_FLAGS_NONE: No flags set.
  1235. * @G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: Don't actually send the AddMatch
  1236. * D-Bus call for this signal subscription. This gives you more control
  1237. * over which match rules you add (but you must add them manually).
  1238. * @G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: Match first arguments that
  1239. * contain a bus or interface name with the given namespace.
  1240. * @G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: Match first arguments that
  1241. * contain an object path that is either equivalent to the given path,
  1242. * or one of the paths is a subpath of the other.
  1243. *
  1244. * Flags used when subscribing to signals via g_dbus_connection_signal_subscribe().
  1245. *
  1246. * Since: 2.26
  1247. */
  1248. typedef enum /*< flags >*/
  1249. {
  1250. G_DBUS_SIGNAL_FLAGS_NONE = 0,
  1251. G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE = (1<<0),
  1252. G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE = (1<<1),
  1253. G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH = (1<<2)
  1254. } GDBusSignalFlags;
  1255. /**
  1256. * GDBusSendMessageFlags:
  1257. * @G_DBUS_SEND_MESSAGE_FLAGS_NONE: No flags set.
  1258. * @G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: Do not automatically
  1259. * assign a serial number from the #GDBusConnection object when
  1260. * sending a message.
  1261. *
  1262. * Flags used when sending #GDBusMessage<!-- -->s on a #GDBusConnection.
  1263. *
  1264. * Since: 2.26
  1265. */
  1266. typedef enum
  1267. {
  1268. G_DBUS_SEND_MESSAGE_FLAGS_NONE = 0,
  1269. G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL = (1<<0)
  1270. } GDBusSendMessageFlags;
  1271. /* (1<<31) is reserved for internal use by GDBusConnection, do not use it. */
  1272. /**
  1273. * GCredentialsType:
  1274. * @G_CREDENTIALS_TYPE_INVALID: Indicates an invalid native credential type.
  1275. * @G_CREDENTIALS_TYPE_LINUX_UCRED: The native credentials type is a <type>struct ucred</type>.
  1276. * @G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: The native credentials type is a <type>struct cmsgcred</type>.
  1277. * @G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: The native credentials type is a <type>struct sockpeercred</type>. Added in 2.30.
  1278. * @G_CREDENTIALS_TYPE_SOLARIS_UCRED: The native credentials type is a <type>ucred_t</type>. Added in 2.40.
  1279. *
  1280. * Enumeration describing different kinds of native credential types.
  1281. *
  1282. * Since: 2.26
  1283. */
  1284. typedef enum
  1285. {
  1286. G_CREDENTIALS_TYPE_INVALID,
  1287. G_CREDENTIALS_TYPE_LINUX_UCRED,
  1288. G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED,
  1289. G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED,
  1290. G_CREDENTIALS_TYPE_SOLARIS_UCRED
  1291. } GCredentialsType;
  1292. /**
  1293. * GDBusMessageByteOrder:
  1294. * @G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: The byte order is big endian.
  1295. * @G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: The byte order is little endian.
  1296. *
  1297. * Enumeration used to describe the byte order of a D-Bus message.
  1298. *
  1299. * Since: 2.26
  1300. */
  1301. typedef enum
  1302. {
  1303. G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN = 'B',
  1304. G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN = 'l'
  1305. } GDBusMessageByteOrder;
  1306. /**
  1307. * GApplicationFlags:
  1308. * @G_APPLICATION_FLAGS_NONE: Default
  1309. * @G_APPLICATION_IS_SERVICE: Run as a service. In this mode, registration
  1310. * fails if the service is already running, and the application
  1311. * will initially wait up to 10 seconds for an initial activation
  1312. * message to arrive.
  1313. * @G_APPLICATION_IS_LAUNCHER: Don't try to become the primary instance.
  1314. * @G_APPLICATION_HANDLES_OPEN: This application handles opening files (in
  1315. * the primary instance). Note that this flag only affects the default
  1316. * implementation of local_command_line(), and has no effect if
  1317. * %G_APPLICATION_HANDLES_COMMAND_LINE is given.
  1318. * See g_application_run() for details.
  1319. * @G_APPLICATION_HANDLES_COMMAND_LINE: This application handles command line
  1320. * arguments (in the primary instance). Note that this flag only affect
  1321. * the default implementation of local_command_line().
  1322. * See g_application_run() for details.
  1323. * @G_APPLICATION_SEND_ENVIRONMENT: Send the environment of the
  1324. * launching process to the primary instance. Set this flag if your
  1325. * application is expected to behave differently depending on certain
  1326. * environment variables. For instance, an editor might be expected
  1327. * to use the <envar>GIT_COMMITTER_NAME</envar> environment variable
  1328. * when editing a git commit message. The environment is available
  1329. * to the #GApplication::command-line signal handler, via
  1330. * g_application_command_line_getenv().
  1331. * @G_APPLICATION_NON_UNIQUE: Make no attempts to do any of the typical
  1332. * single-instance application negotiation, even if the application
  1333. * ID is given. The application neither attempts to become the
  1334. * owner of the application ID nor does it check if an existing
  1335. * owner already exists. Everything occurs in the local process.
  1336. * Since: 2.30.
  1337. *
  1338. * Flags used to define the behaviour of a #GApplication.
  1339. *
  1340. * Since: 2.28
  1341. **/
  1342. typedef enum
  1343. {
  1344. G_APPLICATION_FLAGS_NONE,
  1345. G_APPLICATION_IS_SERVICE = (1 << 0),
  1346. G_APPLICATION_IS_LAUNCHER = (1 << 1),
  1347. G_APPLICATION_HANDLES_OPEN = (1 << 2),
  1348. G_APPLICATION_HANDLES_COMMAND_LINE = (1 << 3),
  1349. G_APPLICATION_SEND_ENVIRONMENT = (1 << 4),
  1350. G_APPLICATION_NON_UNIQUE = (1 << 5)
  1351. } GApplicationFlags;
  1352. /**
  1353. * GTlsError:
  1354. * @G_TLS_ERROR_UNAVAILABLE: No TLS provider is available
  1355. * @G_TLS_ERROR_MISC: Miscellaneous TLS error
  1356. * @G_TLS_ERROR_BAD_CERTIFICATE: A certificate could not be parsed
  1357. * @G_TLS_ERROR_NOT_TLS: The TLS handshake failed because the
  1358. * peer does not seem to be a TLS server.
  1359. * @G_TLS_ERROR_HANDSHAKE: The TLS handshake failed because the
  1360. * peer's certificate was not acceptable.
  1361. * @G_TLS_ERROR_CERTIFICATE_REQUIRED: The TLS handshake failed because
  1362. * the server requested a client-side certificate, but none was
  1363. * provided. See g_tls_connection_set_certificate().
  1364. * @G_TLS_ERROR_EOF: The TLS connection was closed without proper
  1365. * notice, which may indicate an attack. See
  1366. * g_tls_connection_set_require_close_notify().
  1367. *
  1368. * An error code used with %G_TLS_ERROR in a #GError returned from a
  1369. * TLS-related routine.
  1370. *
  1371. * Since: 2.28
  1372. */
  1373. typedef enum {
  1374. G_TLS_ERROR_UNAVAILABLE,
  1375. G_TLS_ERROR_MISC,
  1376. G_TLS_ERROR_BAD_CERTIFICATE,
  1377. G_TLS_ERROR_NOT_TLS,
  1378. G_TLS_ERROR_HANDSHAKE,
  1379. G_TLS_ERROR_CERTIFICATE_REQUIRED,
  1380. G_TLS_ERROR_EOF
  1381. } GTlsError;
  1382. /**
  1383. * GTlsCertificateFlags:
  1384. * @G_TLS_CERTIFICATE_UNKNOWN_CA: The signing certificate authority is
  1385. * not known.
  1386. * @G_TLS_CERTIFICATE_BAD_IDENTITY: The certificate does not match the
  1387. * expected identity of the site that it was retrieved from.
  1388. * @G_TLS_CERTIFICATE_NOT_ACTIVATED: The certificate's activation time
  1389. * is still in the future
  1390. * @G_TLS_CERTIFICATE_EXPIRED: The certificate has expired
  1391. * @G_TLS_CERTIFICATE_REVOKED: The certificate has been revoked
  1392. * according to the #GTlsConnection's certificate revocation list.
  1393. * @G_TLS_CERTIFICATE_INSECURE: The certificate's algorithm is
  1394. * considered insecure.
  1395. * @G_TLS_CERTIFICATE_GENERIC_ERROR: Some other error occurred validating
  1396. * the certificate
  1397. * @G_TLS_CERTIFICATE_VALIDATE_ALL: the combination of all of the above
  1398. * flags
  1399. *
  1400. * A set of flags describing TLS certification validation. This can be
  1401. * used to set which validation steps to perform (eg, with
  1402. * g_tls_client_connection_set_validation_flags()), or to describe why
  1403. * a particular certificate was rejected (eg, in
  1404. * #GTlsConnection::accept-certificate).
  1405. *
  1406. * Since: 2.28
  1407. */
  1408. typedef enum {
  1409. G_TLS_CERTIFICATE_UNKNOWN_CA = (1 << 0),
  1410. G_TLS_CERTIFICATE_BAD_IDENTITY = (1 << 1),
  1411. G_TLS_CERTIFICATE_NOT_ACTIVATED = (1 << 2),
  1412. G_TLS_CERTIFICATE_EXPIRED = (1 << 3),
  1413. G_TLS_CERTIFICATE_REVOKED = (1 << 4),
  1414. G_TLS_CERTIFICATE_INSECURE = (1 << 5),
  1415. G_TLS_CERTIFICATE_GENERIC_ERROR = (1 << 6),
  1416. G_TLS_CERTIFICATE_VALIDATE_ALL = 0x007f
  1417. } GTlsCertificateFlags;
  1418. /**
  1419. * GTlsAuthenticationMode:
  1420. * @G_TLS_AUTHENTICATION_NONE: client authentication not required
  1421. * @G_TLS_AUTHENTICATION_REQUESTED: client authentication is requested
  1422. * @G_TLS_AUTHENTICATION_REQUIRED: client authentication is required
  1423. *
  1424. * The client authentication mode for a #GTlsServerConnection.
  1425. *
  1426. * Since: 2.28
  1427. */
  1428. typedef enum {
  1429. G_TLS_AUTHENTICATION_NONE,
  1430. G_TLS_AUTHENTICATION_REQUESTED,
  1431. G_TLS_AUTHENTICATION_REQUIRED
  1432. } GTlsAuthenticationMode;
  1433. /**
  1434. * GTlsRehandshakeMode:
  1435. * @G_TLS_REHANDSHAKE_NEVER: Never allow rehandshaking
  1436. * @G_TLS_REHANDSHAKE_SAFELY: Allow safe rehandshaking only
  1437. * @G_TLS_REHANDSHAKE_UNSAFELY: Allow unsafe rehandshaking
  1438. *
  1439. * When to allow rehandshaking. See
  1440. * g_tls_connection_set_rehandshake_mode().
  1441. *
  1442. * Since: 2.28
  1443. */
  1444. typedef enum {
  1445. G_TLS_REHANDSHAKE_NEVER,
  1446. G_TLS_REHANDSHAKE_SAFELY,
  1447. G_TLS_REHANDSHAKE_UNSAFELY
  1448. } GTlsRehandshakeMode;
  1449. /**
  1450. * GTlsPasswordFlags:
  1451. * @G_TLS_PASSWORD_NONE: No flags
  1452. * @G_TLS_PASSWORD_RETRY: The password was wrong, and the user should retry.
  1453. * @G_TLS_PASSWORD_MANY_TRIES: Hint to the user that the password has been
  1454. * wrong many times, and the user may not have many chances left.
  1455. * @G_TLS_PASSWORD_FINAL_TRY: Hint to the user that this is the last try to get
  1456. * this password right.
  1457. *
  1458. * Various flags for the password.
  1459. *
  1460. * Since: 2.30
  1461. */
  1462. typedef enum _GTlsPasswordFlags
  1463. {
  1464. G_TLS_PASSWORD_NONE = 0,
  1465. G_TLS_PASSWORD_RETRY = 1 << 1,
  1466. G_TLS_PASSWORD_MANY_TRIES = 1 << 2,
  1467. G_TLS_PASSWORD_FINAL_TRY = 1 << 3
  1468. } GTlsPasswordFlags;
  1469. /**
  1470. * GTlsInteractionResult:
  1471. * @G_TLS_INTERACTION_UNHANDLED: The interaction was unhandled (i.e. not
  1472. * implemented).
  1473. * @G_TLS_INTERACTION_HANDLED: The interaction completed, and resulting data
  1474. * is available.
  1475. * @G_TLS_INTERACTION_FAILED: The interaction has failed, or was cancelled.
  1476. * and the operation should be aborted.
  1477. *
  1478. * #GTlsInteractionResult is returned by various functions in #GTlsInteraction
  1479. * when finishing an interaction request.
  1480. *
  1481. * Since: 2.30
  1482. */
  1483. typedef enum {
  1484. G_TLS_INTERACTION_UNHANDLED,
  1485. G_TLS_INTERACTION_HANDLED,
  1486. G_TLS_INTERACTION_FAILED
  1487. } GTlsInteractionResult;
  1488. /**
  1489. * GDBusInterfaceSkeletonFlags:
  1490. * @G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: No flags set.
  1491. * @G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD: Each method invocation is handled in
  1492. * a thread dedicated to the invocation. This means that the method implementation can use blocking IO
  1493. * without blocking any other part of the process. It also means that the method implementation must
  1494. * use locking to access data structures used by other threads.
  1495. *
  1496. * Flags describing the behavior of a #GDBusInterfaceSkeleton instance.
  1497. *
  1498. * Since: 2.30
  1499. */
  1500. typedef enum
  1501. {
  1502. G_DBUS_INTERFACE_SKELETON_FLAGS_NONE = 0,
  1503. G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD = (1<<0)
  1504. } GDBusInterfaceSkeletonFlags;
  1505. /**
  1506. * GDBusObjectManagerClientFlags:
  1507. * @G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: No flags set.
  1508. * @G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: If not set and the
  1509. * manager is for a well-known name, then request the bus to launch
  1510. * an owner for the name if no-one owns the name. This flag can only
  1511. * be used in managers for well-known names.
  1512. *
  1513. * Flags used when constructing a #GDBusObjectManagerClient.
  1514. *
  1515. * Since: 2.30
  1516. */
  1517. typedef enum
  1518. {
  1519. G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE = 0,
  1520. G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START = (1<<0)
  1521. } GDBusObjectManagerClientFlags;
  1522. /**
  1523. * GTlsDatabaseVerifyFlags:
  1524. * @G_TLS_DATABASE_VERIFY_NONE: No verification flags
  1525. *
  1526. * Flags for g_tls_database_verify_chain().
  1527. *
  1528. * Since: 2.30
  1529. */
  1530. typedef enum /*< flags >*/ {
  1531. G_TLS_DATABASE_VERIFY_NONE = 0
  1532. } GTlsDatabaseVerifyFlags;
  1533. /**
  1534. * GTlsDatabaseLookupFlags:
  1535. * @G_TLS_DATABASE_LOOKUP_NONE: No lookup flags
  1536. * @G_TLS_DATABASE_LOOKUP_KEYPAIR: Restrict lookup to certificates that have
  1537. * a private key.
  1538. *
  1539. * Flags for g_tls_database_lookup_certificate_handle(),
  1540. * g_tls_database_lookup_certificate_issuer(),
  1541. * and g_tls_database_lookup_certificates_issued_by().
  1542. *
  1543. * Since: 2.30
  1544. */
  1545. typedef enum {
  1546. G_TLS_DATABASE_LOOKUP_NONE = 0,
  1547. G_TLS_DATABASE_LOOKUP_KEYPAIR = 1
  1548. } GTlsDatabaseLookupFlags;
  1549. /**
  1550. * GTlsCertificateRequestFlags:
  1551. * @G_TLS_CERTIFICATE_REQUEST_NONE: No flags
  1552. *
  1553. * Flags for g_tls_interaction_request_certificate(),
  1554. * g_tls_interaction_request_certificate_async(), and
  1555. * g_tls_interaction_invoke_request_certificate().
  1556. *
  1557. * Since: 2.40
  1558. */
  1559. typedef enum {
  1560. G_TLS_CERTIFICATE_REQUEST_NONE = 0
  1561. } GTlsCertificateRequestFlags;
  1562. /**
  1563. * GIOModuleScopeFlags:
  1564. * @G_IO_MODULE_SCOPE_NONE: No module scan flags
  1565. * @G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: When using this scope to load or
  1566. * scan modules, automatically block a modules which has the same base
  1567. * basename as previously loaded module.
  1568. *
  1569. * Flags for use with g_io_module_scope_new().
  1570. *
  1571. * Since: 2.30
  1572. */
  1573. typedef enum {
  1574. G_IO_MODULE_SCOPE_NONE,
  1575. G_IO_MODULE_SCOPE_BLOCK_DUPLICATES
  1576. } GIOModuleScopeFlags;
  1577. /**
  1578. * GSocketClientEvent:
  1579. * @G_SOCKET_CLIENT_RESOLVING: The client is doing a DNS lookup.
  1580. * @G_SOCKET_CLIENT_RESOLVED: The client has completed a DNS lookup.
  1581. * @G_SOCKET_CLIENT_CONNECTING: The client is connecting to a remote
  1582. * host (either a proxy or the destination server).
  1583. * @G_SOCKET_CLIENT_CONNECTED: The client has connected to a remote
  1584. * host.
  1585. * @G_SOCKET_CLIENT_PROXY_NEGOTIATING: The client is negotiating
  1586. * with a proxy to connect to the destination server.
  1587. * @G_SOCKET_CLIENT_PROXY_NEGOTIATED: The client has negotiated
  1588. * with the proxy server.
  1589. * @G_SOCKET_CLIENT_TLS_HANDSHAKING: The client is performing a
  1590. * TLS handshake.
  1591. * @G_SOCKET_CLIENT_TLS_HANDSHAKED: The client has performed a
  1592. * TLS handshake.
  1593. * @G_SOCKET_CLIENT_COMPLETE: The client is done with a particular
  1594. * #GSocketConnectable.
  1595. *
  1596. * Describes an event occurring on a #GSocketClient. See the
  1597. * #GSocketClient::event signal for more details.
  1598. *
  1599. * Additional values may be added to this type in the future.
  1600. *
  1601. * Since: 2.32
  1602. */
  1603. typedef enum {
  1604. G_SOCKET_CLIENT_RESOLVING,
  1605. G_SOCKET_CLIENT_RESOLVED,
  1606. G_SOCKET_CLIENT_CONNECTING,
  1607. G_SOCKET_CLIENT_CONNECTED,
  1608. G_SOCKET_CLIENT_PROXY_NEGOTIATING,
  1609. G_SOCKET_CLIENT_PROXY_NEGOTIATED,
  1610. G_SOCKET_CLIENT_TLS_HANDSHAKING,
  1611. G_SOCKET_CLIENT_TLS_HANDSHAKED,
  1612. G_SOCKET_CLIENT_COMPLETE
  1613. } GSocketClientEvent;
  1614. /**
  1615. * GTestDBusFlags:
  1616. * @G_TEST_DBUS_NONE: No flags.
  1617. *
  1618. * Flags to define future #GTestDBus behaviour.
  1619. *
  1620. * Since: 2.34
  1621. */
  1622. typedef enum /*< flags >*/ {
  1623. G_TEST_DBUS_NONE = 0
  1624. } GTestDBusFlags;
  1625. /**
  1626. * GSubprocessFlags:
  1627. * @G_SUBPROCESS_FLAGS_NONE: No flags.
  1628. * @G_SUBPROCESS_FLAGS_STDIN_PIPE: create a pipe for the stdin of the
  1629. * spawned process that can be accessed with
  1630. * g_subprocess_get_stdin_pipe().
  1631. * @G_SUBPROCESS_FLAGS_STDIN_INHERIT: stdin is inherited from the
  1632. * calling process.
  1633. * @G_SUBPROCESS_FLAGS_STDOUT_PIPE: create a pipe for the stdout of the
  1634. * spawned process that can be accessed with
  1635. * g_subprocess_get_stdout_pipe().
  1636. * @G_SUBPROCESS_FLAGS_STDOUT_SILENCE: silence the stdout of the spawned
  1637. * process (ie: redirect to /dev/null).
  1638. * @G_SUBPROCESS_FLAGS_STDERR_PIPE: create a pipe for the stderr of the
  1639. * spawned process that can be accessed with
  1640. * g_subprocess_get_stderr_pipe().
  1641. * @G_SUBPROCESS_FLAGS_STDERR_SILENCE: silence the stderr of the spawned
  1642. * process (ie: redirect to /dev/null).
  1643. * @G_SUBPROCESS_FLAGS_STDERR_MERGE: merge the stderr of the spawned
  1644. * process with whatever the stdout happens to be. This is a good way
  1645. * of directing both streams to a common log file, for example.
  1646. * @G_SUBPROCESS_FLAGS_INHERIT_FDS: spawned processes will inherit the
  1647. * file descriptors of their parent, unless those descriptors have
  1648. * been explicitly marked as close-on-exec. This flag has no effect
  1649. * over the "standard" file descriptors (stdin, stdout, stderr).
  1650. *
  1651. * Flags to define the behaviour of a #GSubprocess.
  1652. *
  1653. * Note that the default for stdin is to redirect from /dev/null. For
  1654. * stdout and stderr the default are for them to inherit the
  1655. * corresponding descriptor from the calling process.
  1656. *
  1657. * Note that it is a programmer error to mix 'incompatible' flags. For
  1658. * example, you may not request both %G_SUBPROCESS_FLAGS_STDOUT_PIPE and
  1659. * %G_SUBPROCESS_FLAGS_STDOUT_SILENCE.
  1660. *
  1661. * Since: 2.40
  1662. **/
  1663. typedef enum {
  1664. G_SUBPROCESS_FLAGS_NONE = 0,
  1665. G_SUBPROCESS_FLAGS_STDIN_PIPE = (1u << 0),
  1666. G_SUBPROCESS_FLAGS_STDIN_INHERIT = (1u << 1),
  1667. G_SUBPROCESS_FLAGS_STDOUT_PIPE = (1u << 2),
  1668. G_SUBPROCESS_FLAGS_STDOUT_SILENCE = (1u << 3),
  1669. G_SUBPROCESS_FLAGS_STDERR_PIPE = (1u << 4),
  1670. G_SUBPROCESS_FLAGS_STDERR_SILENCE = (1u << 5),
  1671. G_SUBPROCESS_FLAGS_STDERR_MERGE = (1u << 6),
  1672. G_SUBPROCESS_FLAGS_INHERIT_FDS = (1u << 7)
  1673. } GSubprocessFlags;
  1674. G_END_DECLS
  1675. #endif /* __GIO_ENUMS_H__ */