/instServer/protos.h

http://github.com/Yniold/liftsrc · C Header · 20 lines · 17 code · 0 blank · 3 comment · 0 complexity · 251fb4da80701d4ae24027d5f19dab64 MD5 · raw file

  1. /* cfgnear.c */
  2. long fcopy(char *dest, char *source);
  3. int input_config(char *filename, struct Config_Tag configs[], char *header);
  4. int update_config(char *filename, struct Config_Tag configs[], char *header);
  5. /* logerror.c */
  6. void LogError(char *Message);
  7. /* main.c */
  8. int DoMotor(struct ClientMessageType *ptrClientMessage);
  9. int DoValve(struct ClientMessageType *ptrClientMessage);
  10. int FindFkt(struct InterprFktType *ptr1, struct InterprFktType *ptr2);
  11. int ParseMsg(char *ptrLine, unsigned nbytes, struct ActiveClientStructType *ptrActiveClientStruct);
  12. int InitTCPListener(int portnum);
  13. void InitClientAccessList(struct ClientRightAscType *ptrClientRightAscList, struct ClientListType **pptrClientRightList);
  14. void ReleaseClientAccessList(struct ClientListType *ptrClientRightList);
  15. struct ClientListType *ValidateAddress(struct sockaddr_in *ptrRemoteAddr, struct ClientListType *ptrClientRightList);
  16. int InitActiveClientStruct(struct ActiveClientStructType *ActiveClientStruct);
  17. void ReleaseActiveClientStruct(struct ActiveClientStructType *ActiveClientStruct);
  18. int AddClientToList(struct ActiveClientStructType *ptrActiveClientStruct, struct ClientListType *ptrNewClient, int newfd);
  19. int RemoveClientFromList(struct ActiveClientStructType *ptrActiveClientStruct, int fd);
  20. int main(int argc, char *argv[]);