#ifndef __IFMO_DISTRIBUTED_CLASS_DIST__H #define __IFMO_DISTRIBUTED_CLASS_DIST__H #include "pa23.h" #include "banking.h" #define MAX_PIPES ( MAX_PROCCNT ) * ( MAX_PROCCNT - 1 ) typedef struct { int pipes[MAX_PIPES][2]; uint8_t proccnt; uint8_t x; balance_t balances[MAX_X]; FILE* events_log; FILE* pipes_log; pid_t parent_pid; } dist_info_t; typedef struct { int id; dist_info_t *dist_info; } my_info_t; void close_redundant_pipes( dist_info_t *info, uint8_t id ); #endif