Lines Matching refs:method
79 UI_new_method(const UI_METHOD *method) in UI_new_method() argument
87 if ((ret->meth = method) == NULL) in UI_new_method()
536 UI_set_default_method(const UI_METHOD *method) in UI_set_default_method() argument
538 default_UI_meth = method; in UI_set_default_method()
560 UI_set_method(UI *ui, const UI_METHOD *method) in UI_set_method() argument
562 ui->meth = method; in UI_set_method()
571 UI_METHOD *method = NULL; in UI_create_method() local
573 if ((method = calloc(1, sizeof(UI_METHOD))) == NULL) in UI_create_method()
577 if ((method->name = strdup(name)) == NULL) in UI_create_method()
581 return method; in UI_create_method()
584 UI_destroy_method(method); in UI_create_method()
591 UI_destroy_method(UI_METHOD *method) in UI_destroy_method() argument
593 if (method == NULL) in UI_destroy_method()
596 free(method->name); in UI_destroy_method()
597 free(method); in UI_destroy_method()
602 UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui)) in UI_method_set_opener() argument
604 if (method == NULL) in UI_method_set_opener()
607 method->ui_open_session = opener; in UI_method_set_opener()
614 UI_method_set_writer(UI_METHOD *method, int (*writer)(UI *ui, UI_STRING *uis)) in UI_method_set_writer() argument
616 if (method == NULL) in UI_method_set_writer()
619 method->ui_write_string = writer; in UI_method_set_writer()
626 UI_method_set_flusher(UI_METHOD *method, int (*flusher)(UI *ui)) in UI_method_set_flusher() argument
628 if (method == NULL) in UI_method_set_flusher()
631 method->ui_flush = flusher; in UI_method_set_flusher()
638 UI_method_set_reader(UI_METHOD *method, int (*reader)(UI *ui, UI_STRING *uis)) in UI_method_set_reader() argument
640 if (method == NULL) in UI_method_set_reader()
643 method->ui_read_string = reader; in UI_method_set_reader()
650 UI_method_set_closer(UI_METHOD *method, int (*closer)(UI *ui)) in UI_method_set_closer() argument
652 if (method == NULL) in UI_method_set_closer()
655 method->ui_close_session = closer; in UI_method_set_closer()
662 UI_method_set_prompt_constructor(UI_METHOD *method, in UI_method_set_prompt_constructor() argument
666 if (method == NULL) in UI_method_set_prompt_constructor()
669 method->ui_construct_prompt = prompt_constructor; in UI_method_set_prompt_constructor()
676 (*UI_method_get_opener(const UI_METHOD * method))(UI *) in UI_method_get_opener() argument
678 if (method == NULL) in UI_method_get_opener()
681 return method->ui_open_session; in UI_method_get_opener()
686 (*UI_method_get_writer(const UI_METHOD *method))(UI *, UI_STRING *) in UI_method_get_writer() argument
688 if (method == NULL) in UI_method_get_writer()
691 return method->ui_write_string; in UI_method_get_writer()
696 (*UI_method_get_flusher(const UI_METHOD *method)) (UI *) in UI_method_get_flusher() argument
698 if (method == NULL) in UI_method_get_flusher()
701 return method->ui_flush; in UI_method_get_flusher()
706 (*UI_method_get_reader(const UI_METHOD *method))(UI *, UI_STRING *) in UI_method_get_reader() argument
708 if (method == NULL) in UI_method_get_reader()
711 return method->ui_read_string; in UI_method_get_reader()
716 (*UI_method_get_closer(const UI_METHOD *method))(UI *) in UI_method_get_closer() argument
718 if (method == NULL) in UI_method_get_closer()
721 return method->ui_close_session; in UI_method_get_closer()
726 (*UI_method_get_prompt_constructor(const UI_METHOD *method))(UI *, const char *, in UI_method_get_prompt_constructor() argument
729 if (method == NULL) in UI_method_get_prompt_constructor()
732 return method->ui_construct_prompt; in UI_method_get_prompt_constructor()