Add new udafs and RMR support to gsprintconsole_ves
[com/gs-lite.git] / include / clearinghouseregistries.h
index 2ec1778..8c66c9b 100644 (file)
@@ -1,64 +1,64 @@
-/* ------------------------------------------------\r
- Copyright 2014 AT&T Intellectual Property\r
- Licensed under the Apache License, Version 2.0 (the "License");\r
- you may not use this file except in compliance with the License.\r
- You may obtain a copy of the License at\r
\r
- http://www.apache.org/licenses/LICENSE-2.0\r
\r
- Unless required by applicable law or agreed to in writing, software\r
- distributed under the License is distributed on an "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- See the License for the specific language governing permissions and\r
- limitations under the License.\r
- ------------------------------------------- */\r
-#ifndef CLEARINGHOUSEREGISTRIES_H\r
-#define CLEARINGHOUSEREGISTRIES_H\r
-\r
-#include "fta.h"\r
-#include "systat.h"\r
-#include "fta_stat.h"\r
-\r
-/* The table is used to maintain the location information\r
- *  of FTAs within the clearinghouse it is not used outherwise\r
- * Behaviour is undefined if the same name\r
- * is registered more then once.\r
- */\r
-\r
-/* These functions are used for both FTAs and instances of FTAs\r
- * if ftaid.streamid == 0 then the function is called for a FTA\r
- * if not it is called for an FTA instance.\r
- * if an FTA is registered reusable must be set to 1\r
- * if an FTA instance is registered reusable is either set to\r
- *   0 or 1 depending if the fta can be reused\r
- * if reuse is set to 1 an existing instance is returned\r
- * if reuse is set to 0 the FTA and not an instance is returned\r
- */\r
-\r
-/* Adds a FTA to the lookup table if FTAID schema */\r
-gs_retval_t ftalookup_register_fta(FTAID subscriber,\r
-                                   FTAID ftaid,\r
-                                   FTAname name,\r
-                                   gs_uint32_t reusable,\r
-                                   gs_csp_t schema);\r
-\r
-/* Removes the FTA from the lookup table */\r
-gs_retval_t ftalookup_unregister_fta(FTAID subscriber,\r
-                                     FTAID ftaid);\r
-\r
-/* Looks an FTA up by name */\r
-gs_retval_t ftalookup_lookup_fta_index(FTAID caller,\r
-                                       FTAname name,\r
-                                       gs_uint32_t reuse,\r
-                                       FTAID * ftaid,\r
-                                       gs_csp_t * schema);\r
-\r
-/* Gets called when a consumer stoped receiving data */\r
-\r
-gs_retval_t ftalookup_producer_failure(FTAID caller,FTAID producer);\r
-\r
-/* Gets called when a FTA sends a heart beat */\r
-\r
-gs_retval_t ftalookup_heartbeat(FTAID caller, gs_uint64_t trace_id,\r
-                                gs_uint32_t sz, fta_stat * trace );\r
-#endif\r
+/* ------------------------------------------------
+ Copyright 2014 AT&T Intellectual Property
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ------------------------------------------- */
+#ifndef CLEARINGHOUSEREGISTRIES_H
+#define CLEARINGHOUSEREGISTRIES_H
+
+#include "fta.h"
+#include "systat.h"
+#include "fta_stat.h"
+
+/* The table is used to maintain the location information
+ *  of FTAs within the clearinghouse it is not used outherwise
+ * Behaviour is undefined if the same name
+ * is registered more then once.
+ */
+
+/* These functions are used for both FTAs and instances of FTAs
+ * if ftaid.streamid == 0 then the function is called for a FTA
+ * if not it is called for an FTA instance.
+ * if an FTA is registered reusable must be set to 1
+ * if an FTA instance is registered reusable is either set to
+ *   0 or 1 depending if the fta can be reused
+ * if reuse is set to 1 an existing instance is returned
+ * if reuse is set to 0 the FTA and not an instance is returned
+ */
+
+/* Adds a FTA to the lookup table if FTAID schema */
+gs_retval_t ftalookup_register_fta(FTAID subscriber,
+                                   FTAID ftaid,
+                                   FTAname name,
+                                   gs_uint32_t reusable,
+                                   gs_csp_t schema);
+
+/* Removes the FTA from the lookup table */
+gs_retval_t ftalookup_unregister_fta(FTAID subscriber,
+                                     FTAID ftaid);
+
+/* Looks an FTA up by name */
+gs_retval_t ftalookup_lookup_fta_index(FTAID caller,
+                                       FTAname name,
+                                       gs_uint32_t reuse,
+                                       FTAID * ftaid,
+                                       gs_csp_t * schema);
+
+/* Gets called when a consumer stoped receiving data */
+
+gs_retval_t ftalookup_producer_failure(FTAID caller,FTAID producer);
+
+/* Gets called when a FTA sends a heart beat */
+
+gs_retval_t ftalookup_heartbeat(FTAID caller, gs_uint64_t trace_id,
+                                gs_uint32_t sz, fta_stat * trace );
+#endif