How to define the interface to "const char *"