return 0;
}
+/**
+ * Allocates endpoint
+ *
+ * \return On success returns endpoint structure.
+ * On error, NULL is returned.
+ *
+ */
static fwp_endpoint_t* fwp_endpoint_alloc()
{
int i, max_endpoints;
return (&fwp_endpoint_table.entry[i]);
}
+/**
+ * Destroy endpoint
+ *
+ * \param[in] epointd Endpoint descriptor
+ * \return On success 0 is returned.
+ * On error, negative error value is returned.
+ */
int fwp_endpoint_destroy(fwp_endpoint_d_t epointd)
{
fwp_endpoint_t *epoint = epointd;
return 0;
}
+/**
+ * Get endpoint parameters
+ *
+ * \param[in] epointd Endpoint descriptor
+ * \param[out] node Node identifier
+ * \param[out] port Port
+ * \param[out] attr Endpoint`s attributes
+ * \return On success 0 is returned.
+ * On error, negative error value is returned.
+ */
int fwp_endpoint_get_params(fwp_endpoint_d_t epointd, unsigned int *node,
unsigned int *port, fwp_endpoint_attr_t *attr)
{
*
* \return On success returns descriptor of endpoint.
* On error, negative error code is returned.
- *
*/
int fwp_receive_endpoint_create(/*unsigned int node,*/ unsigned int port,
fwp_endpoint_attr_t *attr,
/**
* Unbinds send endpoint from vres
*
- * \param[in] id send endpoint identifier
+ * \param[in] epointd Send endpoint descriptor
* \return On success returns 0. On error, negative error code is returned
*
*/
/**
* Receives message
*
- * \param[in] epointd descriptor of endpoint
- * \param[in] buffer buffer to store message
- * \param[in] buffer_size size of buffer
+ * \param[in] epointd Descriptor of endpoint
+ * \param[in] buffer Buffer to store message
+ * \param[in] buffer_size Size of buffer
*
* \return
* On success, it returns number of received bytes.
/**
* Sends message through vres
*
- * \param[in] epointd identificator of endpoint
- * \param[in] msg message to sent
- * \param[in] size message size
+ * \param[in] epointd Endpoint descriptor
+ * \param[in] msg Message to sent
+ * \param[in] size Message size
*
* \return
* On success, it returns zero.