lib/domain.c
changeset 1259 5f9d1abbee71
parent 1258 900f1124e8f8
child 1266 dd1f501c4070
equal deleted inserted replaced
1258:900f1124e8f8 1259:5f9d1abbee71
   117 
   117 
   118 /*****************************************************************************/
   118 /*****************************************************************************/
   119 
   119 
   120 void ecrt_domain_state(const ec_domain_t *domain, ec_domain_state_t *state)
   120 void ecrt_domain_state(const ec_domain_t *domain, ec_domain_state_t *state)
   121 {
   121 {
       
   122     ec_ioctl_domain_state_t data;
       
   123 
       
   124     data.domain_index = domain->index;
       
   125     data.state = state;
       
   126     
       
   127     if (ioctl(domain->master->fd, EC_IOCTL_DOMAIN_STATE, &data) == -1) {
       
   128         fprintf(stderr, "Failed to get domain state: %s\n",
       
   129                 strerror(errno));
       
   130     }
   122 }
   131 }
   123 
   132 
   124 /*****************************************************************************/
   133 /*****************************************************************************/