def METHOD_NAME(host, isdefault, config):
    """ GUI API - Adds host to an archive recording session
    (status, recordhost) = pmRecordAddHost("host", 1, "configuration")
    """
    if not isinstance(host, bytes):
        host = host.encode('utf-8')
    rhp = POINTER(pmRecordHost)()
    status = LIBPCP_GUI.METHOD_NAME(c_char_p(host),
                                        isdefault, byref(rhp))
    if status < 0:
        raise pmErr(status)
    if not isinstance(config, bytes):
        config = config.encode('utf-8')
    status = LIBC.fputs(c_char_p(config), c_long(rhp.contents.f_config))
    if status < 0:
        LIBC.perror(c_char_p(""))
        raise pmErr(status)
    return status, rhp