MCPcopy Create free account
hub / github.com/SIPp/sipp / registerKeyword

Function registerKeyword

src/message.cpp:623–630  ·  view source on GitHub ↗

This is very simplistic and does not yet allow any arguments, but it is a start. */

Source from the content-addressed store, hash-verified

621
622/* This is very simplistic and does not yet allow any arguments, but it is a start. */
623int registerKeyword(char *keyword, customKeyword fxn)
624{
625 if (keyword_map.find(keyword) != keyword_map.end()) {
626 ERROR("Can not register keyword '%s', already registered!", keyword);
627 }
628 keyword_map[keyword] = fxn;
629 return 0;
630}

Callers 1

initFunction · 0.85

Calls 2

ERRORFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected