subcluster

March 26, 2020 Contributors

Name

subcluster

Synopsis

#include "hooks/cluster/subcluster.h"

| void **subcluster** ( | closure, |   |
|   | buffer); |   |

void * <var class="pdparam">closure</var>;
string * <var class="pdparam">buffer</var>;

| int **has_cluster_subcluster_hook** ( | ); |   |

| void **register_cluster_subcluster_hook_first** ( | hook, |   |
|   | closure); |   |

ec_hook_cluster_subcluster_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **register_cluster_subcluster_hook_last** ( | hook, |   |
|   | closure); |   |

ec_hook_cluster_subcluster_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **call_cluster_subcluster_hook** ( | buffer); |   |

string * <var class="pdparam">buffer</var>;

Description

**Configuration Change. ** This hook is available as of version 3.2.

If your module needs to determine the subcluster configured for the active Momentum instance, it can call this hook to populate a string with the subcluster name.