[PATCH 1/6] IPC: export qb_ipcs_disconnect()
by Angus Salkeld
Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
include/qb/qbipcs.h | 2 ++
lib/ipc_int.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/qb/qbipcs.h b/include/qb/qbipcs.h
index 3e175db..5d2420b 100644
--- a/include/qb/qbipcs.h
+++ b/include/qb/qbipcs.h
@@ -218,6 +218,8 @@ void qb_ipcs_connection_ref_inc(qb_ipcs_connection_t *c);
*/
void qb_ipcs_connection_ref_dec(qb_ipcs_connection_t *c);
+void qb_ipcs_disconnect(qb_ipcs_connection_t *c);
+
/**
* Get the service id related to this connection's service.
* (as passed into qb_ipcs_create()
diff --git a/lib/ipc_int.h b/lib/ipc_int.h
index 01f9ead..e609302 100644
--- a/lib/ipc_int.h
+++ b/lib/ipc_int.h
@@ -196,6 +196,4 @@ struct qb_ipcs_connection* qb_ipcs_connection_alloc(struct qb_ipcs_service *s);
int32_t qb_ipcs_process_request(struct qb_ipcs_service *s,
struct qb_ipc_request_header *hdr);
-void qb_ipcs_disconnect(struct qb_ipcs_connection *c);
-
#endif /* QB_IPC_INT_H_DEFINED */
--
1.7.3.1
13 years, 4 months
Re: [libqb] [Openais] newlines in qb_util_log messages
by Angus Salkeld
On Fri, Dec 03, 2010 at 08:36:39AM +0000, Dietmar Maurer wrote:
> I assume those newlines "\n" should not be there?
yip, we need to remove them (there are only a couple).
-Angus
>
> --- ipcs.c.org 2010-12-03 09:32:58.000000000 +0100
> +++ ipcs.c 2010-12-03 09:33:08.000000000 +0100
> @@ -168,7 +168,7 @@
> assert(s->ref_count > 0);
> free_it = qb_atomic_int_dec_and_test(&s->ref_count);
> if (free_it) {
> - qb_util_log(LOG_DEBUG, "%s() - destorying\n", __func__);
> + qb_util_log(LOG_DEBUG, "%s() - destorying", __func__);
> qb_list_for_each_safe(iter, iter_next, &s->connections) {
> c = qb_list_entry(iter, struct qb_ipcs_connection, list);
> if (c == NULL) {
>
> > I'd recommend using libqb if you want to use epoll with ipc - its already
> > available. Its far improved and where we are headed in corosync 2.0. If you
> > want to use libcoroipcs/ipcc, epoll could be used, but there is no example
> > code.
> >
> > Regards
> > -steve
>
> _______________________________________________
> Openais mailing list
> Openais(a)lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais
13 years, 5 months