Skip to content

Commit 6f86598

Browse files
committed
session server REFACTOR call home functions refactored
1 parent f031363 commit 6f86598

File tree

2 files changed

+118
-165
lines changed

2 files changed

+118
-165
lines changed

src/session_p.h

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -929,36 +929,8 @@ int nc_sock_listen_unix(const struct nc_server_unix_opts *opts);
929929
* @param[out] idx Index of the bind that was accepted. Can be NULL.
930930
* @return Accepted socket of the new connection, -1 on error.
931931
*/
932-
int nc_sock_accept_binds(struct nc_bind *binds, uint16_t bind_count, pthread_mutex_t *bind_lock, int timeout, char **host, uint16_t *port, uint16_t *idx);
933-
934-
/**
935-
* @brief Lock endpoint structures for reading and the specific endpoint.
936-
*
937-
* @param[in] name Name of the endpoint.
938-
* @param[in] ti Expected transport.
939-
* @param[out] idx Index of the endpoint. Optional.
940-
* @return Endpoint structure.
941-
*/
942-
struct nc_endpt *nc_server_endpt_lock_get(const char *name, NC_TRANSPORT_IMPL ti, uint16_t *idx);
943-
944-
/**
945-
* @brief Lock CH client structures for reading and lock the specific client.
946-
*
947-
* @param[in] name Name of the CH client.
948-
* @param[in] endpt_name Endpoint of the CH client.
949-
* @param[in] ti Expected transport.
950-
* @param[out] client_p Pointer to the CH client.
951-
* @return CH endpoint structure.
952-
*/
953-
struct nc_ch_endpt *nc_server_ch_client_lock(const char *name, const char *endpt_name, NC_TRANSPORT_IMPL ti,
954-
struct nc_ch_client **client_p);
955-
956-
/**
957-
* @brief Unlock CH client strcutures and the specific client.
958-
*
959-
* @param[in] endpt Locked CH client structure.
960-
*/
961-
void nc_server_ch_client_unlock(struct nc_ch_client *client);
932+
int nc_sock_accept_binds(struct nc_bind *binds, uint16_t bind_count, pthread_mutex_t *bind_lock, int timeout,
933+
char **host, uint16_t *port, uint16_t *idx);
962934

963935
/**
964936
* @brief Gets an endpoint structure based on its name.

0 commit comments

Comments
 (0)