You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.1 KiB

  1. /**
  2. * xrdp: A Remote Desktop Protocol server.
  3. *
  4. * Copyright (C) Jay Sorg 2004-2014
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. * read a config file
  19. */
  20. #if !defined(FILE_H)
  21. #define FILE_H
  22. #include "arch.h"
  23. int
  24. file_read_sections(int fd, struct list* names);
  25. int
  26. file_by_name_read_sections(const char* file_name, struct list* names);
  27. int
  28. file_read_section(int fd, const char* section,
  29. struct list* names, struct list* values);
  30. int
  31. file_by_name_read_section(const char* file_name, const char* section,
  32. struct list* names, struct list* values);
  33. #endif