Extend api_feature_loader options.
authorPawel Broda <p.broda@partner.samsung.com>
Wed, 8 Jan 2014 11:38:00 +0000 (12:38 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 30 Jan 2014 11:47:56 +0000 (12:47 +0100)
commitc7206e3c25b6bcc20f2050cf32ba1264b7a547e1
treedbaf1a84d65315287d65226c6aa3e4d3fff56cdf
parent7656fc68898364ad73a493d174f6d3b5c82e1098
Extend api_feature_loader options.

[Issue#]    SSDWSSP-606
[Feature]   Provides possibility to use globs like '*' or '?' in file names
            (i.e. with '-f' option).
            This feature is based on glob() function, please have a look at
            documentation (man 3 glob) for more details.

            For example, having following directory structure:
            testfiles /
                            EFL_1.smack
                            EFL_2.smack
                            EFL_3.smack
                            EFL_5.smak // it's not a typo
                            GFL_6.smack // it's not a typo

            would be possible to issue (quotes are not mandatory):
            api_feature_loader --verbose -f"testfiles/*"
            in order to load rules from the following files:
            EFL_1.smack, EFL_2.smack and EFL_3.smack.

            Please note, that EFL_5.smak matches pattern, but the extension
            is wrong so it will not be loaded.

[Cause]         N/A
[Solution]      N/A
[Verification]  Build, run od the target, see if /opt/dbspace/.rules-db.db3
                is updated.

Change-Id: I6713f33b8e44cdb87659286bce513e68e4f5d98c
api_feature_loader/api_feature_loader.c