| 1 | /* |
| 2 | * winmisc.c: miscellaneous Windows-specific things. |
| 3 | */ |
| 4 | |
| 5 | #include <windows.h> |
| 6 | #include <stdio.h> |
| 7 | #include <stdlib.h> |
| 8 | #include "putty.h" |
| 9 | |
| 10 | void platform_get_x11_auth(char *display, int *proto, |
| 11 | unsigned char *data, int *datalen) |
| 12 | { |
| 13 | /* We don't support this at all under Windows. */ |
| 14 | } |
| 15 | |
| 16 | Filename filename_from_str(char *str) |
| 17 | { |
| 18 | Filename ret; |
| 19 | strncpy(ret.path, str, sizeof(ret.path)); |
| 20 | ret.path[sizeof(ret.path)-1] = '\0'; |
| 21 | return ret; |
| 22 | } |
| 23 | |
| 24 | char *filename_to_str(Filename fn) |
| 25 | { |
| 26 | return fn.path; |
| 27 | } |
| 28 | |
| 29 | int filename_equal(Filename f1, Filename f2) |
| 30 | { |
| 31 | return !strcmp(f1.path, f2.path); |
| 32 | } |
| 33 | |
| 34 | int filename_is_null(Filename fn) |
| 35 | { |
| 36 | return !*fn.path; |
| 37 | } |