diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-22 07:19:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-22 07:19:52 +0000 |
commit | eed68e90e8564b578fd92ef130d305465cecf936 (patch) | |
tree | 0e2bc52e369179487bde1c047165c94d93669b36 /src/arm/gnunet-service-arm.c | |
parent | dd9ed7931e52705b216c346127108520c5e4460b (diff) | |
download | gnunet-eed68e90e8564b578fd92ef130d305465cecf936.tar.gz gnunet-eed68e90e8564b578fd92ef130d305465cecf936.zip |
convert monitor API to use MQ
Diffstat (limited to 'src/arm/gnunet-service-arm.c')
-rw-r--r-- | src/arm/gnunet-service-arm.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 0ccffa27b..8bc6e9e07 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c | |||
@@ -989,7 +989,8 @@ handle_stop (void *cls, | |||
989 | * @param message the actual message | 989 | * @param message the actual message |
990 | */ | 990 | */ |
991 | static void | 991 | static void |
992 | handle_list (void *cls, struct GNUNET_SERVER_Client *client, | 992 | handle_list (void *cls, |
993 | struct GNUNET_SERVER_Client *client, | ||
993 | const struct GNUNET_MessageHeader *message) | 994 | const struct GNUNET_MessageHeader *message) |
994 | { | 995 | { |
995 | struct GNUNET_ARM_ListResultMessage *msg; | 996 | struct GNUNET_ARM_ListResultMessage *msg; |
@@ -1595,7 +1596,8 @@ setup_service (void *cls, | |||
1595 | * @param client identification of the client | 1596 | * @param client identification of the client |
1596 | */ | 1597 | */ |
1597 | static void | 1598 | static void |
1598 | handle_client_connecting (void *cls, struct GNUNET_SERVER_Client *client) | 1599 | handle_client_connecting (void *cls, |
1600 | struct GNUNET_SERVER_Client *client) | ||
1599 | { | 1601 | { |
1600 | /* All clients are considered to be of the "monitor" kind | 1602 | /* All clients are considered to be of the "monitor" kind |
1601 | * (that is, they don't affect ARM shutdown). | 1603 | * (that is, they don't affect ARM shutdown). |
@@ -1615,9 +1617,12 @@ handle_client_connecting (void *cls, struct GNUNET_SERVER_Client *client) | |||
1615 | * #GNUNET_SYSERR to close it (signal serious error) | 1617 | * #GNUNET_SYSERR to close it (signal serious error) |
1616 | */ | 1618 | */ |
1617 | static void | 1619 | static void |
1618 | handle_monitor (void *cls, struct GNUNET_SERVER_Client *client, | 1620 | handle_monitor (void *cls, |
1619 | const struct GNUNET_MessageHeader *message) | 1621 | struct GNUNET_SERVER_Client *client, |
1622 | const struct GNUNET_MessageHeader *message) | ||
1620 | { | 1623 | { |
1624 | /* FIXME: might want to start by letting monitor know about | ||
1625 | services that are already running */ | ||
1621 | /* Removal is handled by the server implementation, internally. */ | 1626 | /* Removal is handled by the server implementation, internally. */ |
1622 | if ((NULL != client) && (NULL != notifier)) | 1627 | if ((NULL != client) && (NULL != notifier)) |
1623 | { | 1628 | { |