Skip to content

add libconfig#14

Merged
Rheydskey merged 13 commits intomainfrom
feat/parse_module
Dec 16, 2025
Merged

add libconfig#14
Rheydskey merged 13 commits intomainfrom
feat/parse_module

Conversation

@SDC-M
Copy link
Owner

@SDC-M SDC-M commented Nov 30, 2025

No description provided.

@Rheydskey Rheydskey marked this pull request as ready for review December 5, 2025 10:05
@Rheydskey Rheydskey requested a review from Copilot December 5, 2025 10:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR integrates the libconfig library to enable configuration file support for the server application. The implementation reads server configuration parameters (max forks, thread count, file size limits, and timeouts) from an external config file.

  • Adds libconfig dependency and configuration file parsing
  • Introduces a config struct to store server parameters
  • Updates build system and CI workflow to include libconfig dependency

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
server/main.c Adds config struct, init_config_structure() function to parse config file, and integrates config loading into main(); also reorganizes includes
server/CMakeLists.txt Links the libconfig library to the server executable
config.cfg Defines server configuration parameters (max_forks, nb_threads, size_file_max, time_out)
CMakeLists.txt Adds -lconfig linker flag to compiler flags (incorrect placement)
.github/workflows/build.yml Installs libconfig-dev package in CI build environment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 64 to +85
queue_destroy(&q);
return EXIT_FAILURE;
}
sem_post(sem_forks);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si erreur pas de post

@Rheydskey Rheydskey merged commit 8798a48 into main Dec 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants