.TH "gicFeatureAttachAction" 3 "2006-12-30" "libgiigic-1.1.x" GGI .SH NAME \fBgicFeatureAttachAction\fR, \fBgicFeatureDetachAction\fR, \fBgicFeatureWrite\fR, \fBgicFeatureRead\fR : Bind Features and Actions .SH SYNOPSIS .nb .nf #include 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); .fi .SH DESCRIPTION \fBgicFeatureAttachAction()\fR and \fBgicFeatureDetachAction()\fR 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. .SH RETURN VALUE \fBgicFeatureAttachAction()\fR and \fBgicFeatureDetachAction()\fR return 0 on success and an \f(CWgii-error(3)\fR code on failure. .SH SEE ALSO TODO