---
name: "globus_callback"
section: "3"
platform: "linux"
package: "libglobus-common-doc"
version: "18.14-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_callback"
---

# globus\_callback(3)

Globus Callback - Globus Callback Function Interface.

## NAME

globus\_callback - Globus Callback

 \- Globus Callback Function Interface.

## SYNOPSIS

### Modules

**Globus Callback API**\
 Globus Callback API.  **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** { **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** }\
 Error types.

## Detailed Description

Globus Callback Function Interface.

## Macro Definition Documentation

### #define GLOBUS\_CALLBACK\_MODULE

Module descriptor. Module descriptor for for globus\_callback module. Must be activated before any of the following api is called.

Note: You would not normally activate this module directly. Activating the GLOBUS\_COMMON\_MODULE will in turn activate this also.

### #define GLOBUS\_POLL\_MODULE

Module descriptor.

**Deprecated**

Backward compatible name

## Typedef Documentation

### typedef int globus\_callback\_handle\_t

Periodic callback handle. This handle can be copied or compared, and represented as NULL with GLOBUS\_NULL\_HANDLE

### typedef struct globus\_l\_callback\_space\_attr\_s\* globus\_callback\_space\_attr\_t

Callback space attribute. This handle can be copied and represented as NULL with GLOBUS\_NULL

### typedef int globus\_callback\_space\_t

Callback space handle. This handle can be copied or compared and represented as NULL with GLOBUS\_NULL\_HANDLE

## Enumeration Type Documentation

### enum globus\_callback\_error\_type\_t

Error types. Possible error types returned by the api in this module. You can use the error API to check results against these types.

**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 callers's stack*

## Author

*Generated automatically by Doxygen for globus\_common from the source code.*
