Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

editstring.h 675B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _GPXE_EDITSTRING_H
  2. #define _GPXE_EDITSTRING_H
  3. /** @file
  4. *
  5. * Editable strings
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  9. /** An editable string */
  10. struct edit_string {
  11. /** Buffer for string */
  12. char *buf;
  13. /** Size of buffer (including terminating NUL) */
  14. size_t len;
  15. /** Cursor position */
  16. unsigned int cursor;
  17. /* The following items are the edit history */
  18. /** Last cursor position */
  19. unsigned int last_cursor;
  20. /** Start of modified portion of string */
  21. unsigned int mod_start;
  22. /** End of modified portion of string */
  23. unsigned int mod_end;
  24. };
  25. extern int edit_string ( struct edit_string *string, int key ) __nonnull;
  26. #endif /* _GPXE_EDITSTRING_H */