MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / mainloop_gio_refcount

Function mainloop_gio_refcount

lib/common/mainloop.c:537–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535};
536
537static int
538mainloop_gio_refcount(mainloop_io_t *client)
539{
540 /* This is evil
541 * Looking at the giochannel header file, ref_count is the first member of channel
542 * So cheat...
543 */
544 if(client && client->channel) {
545 int *ref = (void*)client->channel;
546 return *ref;
547 }
548 return 0;
549}
550
551static gboolean
552mainloop_gio_callback(GIOChannel *gio, GIOCondition condition, gpointer data)

Callers 4

mainloop_gio_callbackFunction · 0.85
mainloop_gio_destroyFunction · 0.85
mainloop_add_fdFunction · 0.85
mainloop_del_fdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected