globus_fifo.h(3)
β¨ globus_fifo.h β¨
okay bestie, welcome to the globus_fifo.h page from the Library Functions Manual π this is the Globus FIFO situation and honestly? it's giving queue energy and we are obsessed π
πΈ NAME πΈ
globus_fifo.h β Globus FIFO π
π¦ SYNOPSIS π¦
#include 'globus_list.h'
(yes bestie, that include is written with single quotes in the source, we do not touch it, we do not "fix" it, periodt π)
π Typedefs
typedef struct globus_fifo_s * globus_fifo_tβ this is the FIFO handle type, the little main character pointer you pass around everywhere β¨
π«Ά Functions
int globus_fifo_init (globus_fifo_t *fifo)β sets up the fifo structure, gets it ready for its moment πvoid globus_fifo_destroy (globus_fifo_t *fifo)β tears the fifo down πvoid globus_fifo_destroy_all (globus_fifo_t *fifo, void(*datum_free)(void *))β takes the fifo out and calls adatum_freefunction on the data inside, so nothing leaks, we love a responsible queen πint globus_fifo_empty (const globus_fifo_t *fifo)β is it empty or not, the vibe check π§int globus_fifo_size (const globus_fifo_t *fifo)β how many things are in there π₯int globus_fifo_enqueue (globus_fifo_t *fifo, void *datum)β adds adatumto the fifo, join the line bestie πglobus_fifo_t * globus_fifo_copy (const globus_fifo_t *fifo)β makes a whole copy of the fifo, twin behavior πvoid * globus_fifo_peek (globus_fifo_t *fifo)β sneaky little look at the front, no removal, just observing πvoid * globus_fifo_tail_peek (globus_fifo_t *fifo)β same vibe but from the tail end πvoid * globus_fifo_remove (globus_fifo_t *headp, void *datum)β removes adatum, taking thatheadptoo πvoid * globus_fifo_dequeue (globus_fifo_t *fifo)β pops the front one off and hands it to you, iconic behavior β¨int globus_fifo_move (globus_fifo_t *fifo_dest, globus_fifo_t *fifo_src)β moves everything fromfifo_srcintofifo_dest, we are relocating πΈglobus_list_t * globus_fifo_convert_to_list (globus_fifo_t *fifo)β turns your fifo into aglobus_list_t *, a full glow-up transformation π
π Detailed Description π
Globus FIFO.
This file defines the globus_fifo_t type useful for queuing arbitrary data (via void-pointer) π
ngl, "arbitrary data via void-pointer" is the whole point β you can shove literally any pointer in there, it does not care, it does not judge, it just queues π«Ά
π Author π
Generated automatically by Doxygen for globus_common from the source code. (not a human author, just a robot doing its little thing π€β¨)
and that's the whole page bestie, no cap, every flag, type, and function accounted for π
sending you off with the footer tea: this is from globus_common, Version 18.15 π mwah, go queue something π
π¦ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 Β· Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 Β· Apache-2.0
- fedora 44: globus-common-doc 18.15-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 Β· Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms