]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_service_component.h
service: return integer service id from register
[dpdk.git] / lib / librte_eal / common / include / rte_service_component.h
index 7a946a1e44663c8eb23bee8935f3030a6673d2a6..6ef3ee456ed309bdc66be6ad2da302b1262421ad 100644 (file)
@@ -89,11 +89,15 @@ struct rte_service_spec {
  * *rte_service_set_coremask*.
  *
  * @param spec The specification of the service to register
+ * @param[out] service_id A pointer to a uint32_t, which will be filled in
+ *             during registration of the service. It is set to the integers
+ *             service number given to the service. This parameter may be NULL.
  * @retval 0 Successfully registered the service.
  *         -EINVAL Attempted to register an invalid service (eg, no callback
  *         set)
  */
-int32_t rte_service_register(const struct rte_service_spec *spec);
+int32_t rte_service_component_register(const struct rte_service_spec *spec,
+                                      uint32_t *service_id);
 
 /**
  * @warning