Skip to content

Commit

Permalink
introduce dds_domain_lifecycle
Browse files Browse the repository at this point in the history
Represents the lifecycle state of the system.
  • Loading branch information
poetinger committed Nov 15, 2023
1 parent 56c82ae commit edf2609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/ddsc/include/dds/dds.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,13 @@ dds_create_domain(const dds_domainid_t domain, const char *config);
DDS_EXPORT dds_entity_t
dds_create_domain_with_rawconfig(const dds_domainid_t domain, const struct ddsi_config *config);

/// @brief Supported lifecycle states
/// @ingroup domain
enum dds_domain_lifecycle{
DDS_DOMAIN_LIFECYCLE_INITIALISATION,
DDS_DOMAIN_LIFECYCLE_OPERATIONAL
};

/**
* @brief Get entity parent.
* @ingroup entity
Expand Down
1 change: 1 addition & 0 deletions src/core/ddsc/src/dds_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "dds__psmx.h"

static dds_return_t dds_domain_free (dds_entity *vdomain);
static dds_domain_lifecycle LIFECYCLE_STATE = DDS_DOMAIN_LIFECYCLE_INITIALISATION;

const struct dds_entity_deriver dds_entity_deriver_domain = {
.interrupt = dds_entity_deriver_dummy_interrupt,
Expand Down

0 comments on commit edf2609

Please sign in to comment.