stasis: Remove stringfields and lock from change message.

When a subscribe or unsubscribe occurs a message is published
containing this information. This change makes it so that the
message no longer uses stringfields or a lock, as both are not
really needed for the message.

Change-Id: I3f4831931d79f94fd979baf48048738df5dc1632
This commit is contained in:
Joshua C. Colp
2018-11-18 19:53:14 -04:00
committed by Joshua Colp
parent e0b5d74e93
commit a5a8cba8c7
2 changed files with 10 additions and 11 deletions

View File

@@ -816,11 +816,9 @@ int stasis_subscription_final_message(struct stasis_subscription *sub, struct st
* \since 12
*/
struct stasis_subscription_change {
AST_DECLARE_STRING_FIELDS(
AST_STRING_FIELD(uniqueid); /*!< The unique ID associated with this subscription */
AST_STRING_FIELD(description); /*!< The description of the change to the subscription associated with the uniqueid */
);
struct stasis_topic *topic; /*!< The topic the subscription is/was subscribing to */
struct stasis_topic *topic; /*!< The topic the subscription is/was subscribing to */
char *uniqueid; /*!< The unique ID associated with this subscription */
char description[0]; /*!< The description of the change to the subscription associated with the uniqueid */
};
/*!