Lines Matching refs:method
76 UI *UI_new_method(const UI_METHOD *method)
86 if (method == NULL)
89 ret->meth=method;
631 /* BIG FSCKING WARNING!!!! If you use this on a statically allocated method
641 int UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui))
643 if (method)
645 method->ui_open_session = opener;
652 int UI_method_set_writer(UI_METHOD *method, int (*writer)(UI *ui, UI_STRING *uis))
654 if (method)
656 method->ui_write_string = writer;
663 int UI_method_set_flusher(UI_METHOD *method, int (*flusher)(UI *ui))
665 if (method)
667 method->ui_flush = flusher;
674 int UI_method_set_reader(UI_METHOD *method, int (*reader)(UI *ui, UI_STRING *uis))
676 if (method)
678 method->ui_read_string = reader;
685 int UI_method_set_closer(UI_METHOD *method, int (*closer)(UI *ui))
687 if (method)
689 method->ui_close_session = closer;
696 int UI_method_set_prompt_constructor(UI_METHOD *method, char *(*prompt_constructor)(UI* ui, const char* object_desc, const char* object_name))
698 if (method)
700 method->ui_construct_prompt = prompt_constructor;
707 int (*UI_method_get_opener(UI_METHOD *method))(UI*)
709 if (method)
710 return method->ui_open_session;
715 int (*UI_method_get_writer(UI_METHOD *method))(UI*,UI_STRING*)
717 if (method)
718 return method->ui_write_string;
723 int (*UI_method_get_flusher(UI_METHOD *method))(UI*)
725 if (method)
726 return method->ui_flush;
731 int (*UI_method_get_reader(UI_METHOD *method))(UI*,UI_STRING*)
733 if (method)
734 return method->ui_read_string;
739 int (*UI_method_get_closer(UI_METHOD *method))(UI*)
741 if (method)
742 return method->ui_close_session;
747 char* (*UI_method_get_prompt_constructor(UI_METHOD *method))(UI*, const char*, const char*)
749 if (method)
750 return method->ui_construct_prompt;