-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a file_info_type function.
Create a series of defines for the file type Inspect the file type for each file handler and perform the relevant release code to free any memory. If the type cannot be determined, print an error and return -EINVAL. This should also be slightly faster than a strcmp() but its not likely that measurable. This code could be used elsewhere in the process to reduce the strcmp requirements, but for now just handle the release/releasedir case. Signed-off-by: Matthew Ife <matthewi@mustardsystems.com>
- Loading branch information
Matthew Ife
committed
Jan 12, 2023
1 parent
63c9b1d
commit 0b749c9
Showing
2 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters