The signature of the callback which is called when the pattern matching of a given text is complete.


#include <strpattern.h>
typedef void(* strpattern_analyze_callback_func)(strpattern_match **matches, int len, void *user_data, int err);


BlackBerry 10.0.0


libstrpattern (For the qcc command, use the -l strpattern option to link against this library)


This function has the responsibility to release the list of matches. The eventual release of the matches themselves also has to be ensured. For example, call strpattern_match_delete_all().

Note: The callback may be run in a separate thread. Make sure that any data access and function calls from inside the callback are done in a thread-safe way by using locks when appropriate.

Last modified: 2014-05-14

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus