Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optlib: allow users to set fields and check extras defined in a foreign language #3960

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Aug 30, 2024

  1. main: prepare the default implementation for isValueAvailable method …

    …for newly defined field
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    3258e84 View commit details
    Browse the repository at this point in the history
  2. main: allow to specify data type for a parser specific field

    --_list-fielddef-flags option is added, too.
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    e512a73 View commit details
    Browse the repository at this point in the history
  3. optscript: verify language consitency between a tag and its field in …

    …field setters
    
    This is a preparation. A test case for raising the error introduced in
    this commit will be added when we have real field accessors.
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    ce6c7e9 View commit details
    Browse the repository at this point in the history
  4. main: define operators accessing parser specific fields

    The operators (setter and/or getter) for each field.
    The name of operatos has following form:
    
    	setter => :<LANG>.<FIELD>
    	getter => <LANG>.<FIELD>:
    
    NOTE: The operators for a field are defined only if the
    field has C level getters and setters, getValueObject and setValueObject
    in fieldDefinition. This commit doesn't provide a getter and a setter.
    The test cases and the real accessor will be implemented later.
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7b991c9 View commit details
    Browse the repository at this point in the history
  5. main: implement the setter and getter for parser specific fields defi…

    …ned in an optlib parser
    
    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    62467ec View commit details
    Browse the repository at this point in the history
  6. [WIP] Tmain: add a case testing operators for boolean fields

    Signed-off-by: Masatake YAMATO <yamato@redhat.com>
    masatake committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c50fcca View commit details
    Browse the repository at this point in the history