gicFeatureAttachAction(3)

gicFeatureAttachAction3

Bind features and actions

Usage

#include <ggi/gic.h>
int gicFeatureAttachAction(gic_handle_t hand,
      gic_feature *feature,
      void (*action)(gic_handle_t hand, gic_actionlist *action,
              gic_feature *feature,gic_state newstate,
              gic_flag flag,int recnum),
      void *privdata, char *name);
int gicFeatureDetachAction(gic_handle_t hand,
      gic_feature *feature,
      void (*action)(gic_handle_t hand, gic_actionlist *action,
              gic_feature *feature,gic_state newstate,
              gic_flag flag,int recnum),
      void *privdata, char *name);

Overview

gicFeatureAttachAction() and gicFeatureDetachAction() are used to bind an action (i.e. a callback function) to a feature. This is usually handled by higher layers, which map whole sets of actions using a gic_actionlist.

Return value

gicFeatureAttachAction() and gicFeatureDetachAction() return 0 on success and an gii-error(3) code on failure.

Releases

3 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0–6.0

From libgiigic1-dev 1.1.2-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.