globus_callback(3)

✨ globus_callback ✨

okay bestie, welcome to Globus Callback πŸ’– this is from the Library Functions Manual, and it's literally the Globus Callback Function Interface. yes that's a lot of "callback" in one sentence. we move.


🌸 SYNOPSIS 🌸

πŸŽ€ Topics

  • Globus Callback API β€” the Globus Callback API, bestie.
  • Globus Callback Spaces β€” Globus Callback Spaces.
  • Globus Callback Signal Handling β€” Globus Callback Signal Handling.

πŸŽ€ Macros

  • #define GLOBUS_CALLBACK_MODULE β€” Module descriptor.
  • #define GLOBUS_POLL_MODULE β€” Module descriptor.

πŸŽ€ Typedefs

  • typedef int globus_callback_handle_t β€” Periodic callback handle.
  • typedef int globus_callback_space_t β€” Callback space handle.
  • typedef struct globus_l_callback_space_attr_s * globus_callback_space_attr_t β€” Callback space attribute.

πŸŽ€ Enumerations

  • enum globus_callback_error_type_t { β€” Error types.
GLOBUS_CALLBACK_ERROR_INVALID_CALLBACK_HANDLE = 1024,
GLOBUS_CALLBACK_ERROR_INVALID_SPACE,
GLOBUS_CALLBACK_ERROR_MEMORY_ALLOC,
GLOBUS_CALLBACK_ERROR_INVALID_ARGUMENT,
GLOBUS_CALLBACK_ERROR_ALREADY_CANCELED,
GLOBUS_CALLBACK_ERROR_NO_ACTIVE_CALLBACK }

πŸ’… Detailed Description πŸ’…

Globus Callback Function Interface. that's the whole vibe. slay.


πŸ¦‹ Macro Definition Documentation πŸ¦‹

🌟 #define GLOBUS_CALLBACK_MODULE

Module descriptor. it's the module descriptor for the globus_callback module, bestie. you must activate it before you call any of the api below. no skipping steps, fr fr.

Note: you would not normally activate this module directly. activating the GLOBUS_COMMON_MODULE will in turn activate this one too. so like… it handles it for you. iconic behaviour honestly.

🌟 #define GLOBUS_POLL_MODULE

Module descriptor.

Deprecated β€” it's a backward compatible name. yes bestie, deprecated. it still works but the way it's giving legacy 😭


πŸ’œ Typedef Documentation πŸ’œ

🌟 typedef int globus_callback_handle_t

Periodic callback handle. you can copy it, you can compare it, and you can represent it as NULL with GLOBUS_NULL_HANDLE. easy peasy πŸ“

🌟 typedef struct globus_l_callback_space_attr_s* globus_callback_space_attr_t

Callback space attribute. this handle can be copied, and you represent it as NULL with GLOBUS_NULL. that's it, that's the whole thing ✨

🌟 typedef int globus_callback_space_t

Callback space handle. copy it, compare it, and represent it as NULL with GLOBUS_NULL_HANDLE. same energy as the other handle, honestly πŸ‘‘


🌈 Enumeration Type Documentation 🌈

🌟 enum globus_callback_error_type_t

Error types. these are the possible error types the api in this module returns, and you can use the error API to check your results against them. so handy.

See also: Error Handling Helpers

🧚 Enumerator 🧚

  • GLOBUS_CALLBACK_ERROR_INVALID_CALLBACK_HANDLE β€” the callback handle is not valid, or it has already been destroyed πŸ’€
  • GLOBUS_CALLBACK_ERROR_INVALID_SPACE β€” the space handle is not valid, or it has already been destroyed πŸ’€
  • GLOBUS_CALLBACK_ERROR_MEMORY_ALLOC β€” could not allocate memory for an internal structure 😭
  • GLOBUS_CALLBACK_ERROR_INVALID_ARGUMENT β€” one of the arguments is NULL or out of range πŸ™ˆ
  • GLOBUS_CALLBACK_ERROR_ALREADY_CANCELED β€” attempt to unregister callback again πŸ™ƒ
  • GLOBUS_CALLBACK_ERROR_NO_ACTIVE_CALLBACK β€” attempt to retrieve info about a callback not in caller's stack 🫠

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for globus_common from the source code. the robot did the writing, we just did the vibes πŸ’–


okay that's the whole page bestie, and for the cute sign-off: this is from globus_common, Version 18.15, dated as globus_callback(3) β€” periodt, that's the page number too 🌸✨🫢

πŸ“¦ where this page comes from