Lines Matching refs:name
33 static bool RegisterFunc(const std::string &name, Callback cb);
40 #define DEFINE_CALLBACK(name, async) \
41 void name(OHOS::UIView &); \
42 static void __attribute((constructor)) RegisterCallback##name() \
44 LOG(INFO) << "register callback " << (#name); \
45 CallbackManager::RegisterFunc(#name, Callback{&name, async}); \
47 void name(OHOS::UIView &)
49 #define DEFINE_ASYN_CALLBACK(name) DEFINE_CALLBACK(name, true)
51 #define DEFINE_SYNC_CALLBACK(name) DEFINE_CALLBACK(name, false)