Similarly, the unsubscribe() method should decrement the reference count and disable the feature when there is no subscribers left.
The num_subscribers() method should return the current reference count.
SIM_INTERFACE(probe_subscribe) {
void (*subscribe)(conf_object_t *obj);
void (*unsubscribe)(conf_object_t *obj);
int (*num_subscribers)(conf_object_t *obj);
};
#define PROBE_SUBSCRIBE_INTERFACE "probe_subscribe"