-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export device_parser struct and functions
Export the functions and struct to enable devices to parse yaml aswell via the parse_options op to be stored in the device control_options device property. Signed-off-by: Neil Armstrong <[email protected]>
- Loading branch information
1 parent
fbdc677
commit 55902b7
Showing
3 changed files
with
36 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
#ifndef __DEVICE_PARSER_H__ | ||
#define __DEVICE_PARSER_H__ | ||
|
||
struct device_parser; | ||
|
||
int device_parser_accept(struct device_parser *dp, int type, | ||
char *scalar, size_t scalar_len); | ||
bool device_parser_expect(struct device_parser *dp, int type, | ||
char *scalar, size_t scalar_len); | ||
|
||
int device_parser(const char *path); | ||
|
||
#endif |