diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-23 15:55:03 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-23 15:59:48 +0200 |
| commit | 340d597440f27ac7c7ad7a9493cc7cad46ba48c5 (patch) | |
| tree | af746826786e26a96369381f6a427597e1270473 /src/cppc4group.hpp | |
| parent | 2288b901243d626b106fb45293d39d32006b04aa (diff) | |
| download | cc4group-340d597440f27ac7c7ad7a9493cc7cad46ba48c5.tar.gz cc4group-340d597440f27ac7c7ad7a9493cc7cad46ba48c5.zip | |
Add cc4group.setEntryNameMatchingCallback
Diffstat (limited to 'src/cppc4group.hpp')
| -rw-r--r-- | src/cppc4group.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cppc4group.hpp b/src/cppc4group.hpp index 346e8cb..42bef77 100644 --- a/src/cppc4group.hpp +++ b/src/cppc4group.hpp @@ -110,6 +110,7 @@ public: using ReadCallback = bool(*)(const void** const data, size_t* const size, void* const arg); using SetupCallback = bool(*)(void* const arg); using WriteCallback = bool(*)(const void* const data, size_t const size, void* const arg); + using EntryNameMatchingCallback = int(*)(const char* query, const char* name); // but a more practical variant here using WarningCallback = void(*)(const std::string& message); @@ -135,6 +136,8 @@ public: static void setWarningCallback(const WarningCallback callback); + static void setEntryNameMatchingCallback(const EntryNameMatchingCallback callback); + public: // the constructor will automatically construct an internal CC4Group, so no new-equivalent method is needed // may throw std::bad_alloc if the allocation and construction of the internal CC4Group object fails |
