Commit 65ab9b11c22538d77ec154409537fadb13ac01d5
1 parent
6f02a934
Exists in
master
and in
2 other branches
Small adjustmente on host type.
Showing
3 changed files
with
21 additions
and
23 deletions
Show diff stats
lib3270.cbp
| @@ -294,8 +294,6 @@ | @@ -294,8 +294,6 @@ | ||
| 294 | <Unit filename="src/include/macos/lib3270/os.h" /> | 294 | <Unit filename="src/include/macos/lib3270/os.h" /> |
| 295 | <Unit filename="src/include/networking.h" /> | 295 | <Unit filename="src/include/networking.h" /> |
| 296 | <Unit filename="src/include/popupsc.h" /> | 296 | <Unit filename="src/include/popupsc.h" /> |
| 297 | - <Unit filename="src/include/proxyc.h" /> | ||
| 298 | - <Unit filename="src/include/resolverc.h" /> | ||
| 299 | <Unit filename="src/include/resources.h" /> | 297 | <Unit filename="src/include/resources.h" /> |
| 300 | <Unit filename="src/include/screen.h" /> | 298 | <Unit filename="src/include/screen.h" /> |
| 301 | <Unit filename="src/include/screenc.h" /> | 299 | <Unit filename="src/include/screenc.h" /> |
src/core/options.c
| @@ -37,35 +37,35 @@ | @@ -37,35 +37,35 @@ | ||
| 37 | 37 | ||
| 38 | static const LIB3270_HOST_TYPE_ENTRY host_type[] = { | 38 | static const LIB3270_HOST_TYPE_ENTRY host_type[] = { |
| 39 | { | 39 | { |
| 40 | - LIB3270_HOST_S390, | ||
| 41 | - "S390", | ||
| 42 | - N_( "IBM S/390" ), | ||
| 43 | - NULL | 40 | + .type = LIB3270_HOST_S390, |
| 41 | + .name = "S390", | ||
| 42 | + .description = N_( "IBM S/390" ), | ||
| 43 | + .tooltip = NULL | ||
| 44 | }, | 44 | }, |
| 45 | { | 45 | { |
| 46 | - LIB3270_HOST_AS400, | ||
| 47 | - "AS400", | ||
| 48 | - N_( "IBM AS/400" ), | ||
| 49 | - NULL | 46 | + .type = LIB3270_HOST_AS400, |
| 47 | + .name = "AS400", | ||
| 48 | + .description = N_( "IBM AS/400" ), | ||
| 49 | + .tooltip = NULL | ||
| 50 | }, | 50 | }, |
| 51 | { | 51 | { |
| 52 | - LIB3270_HOST_TSO, | ||
| 53 | - "TSO", | ||
| 54 | - N_( "Other (TSO)" ), | ||
| 55 | - NULL | 52 | + .type = LIB3270_HOST_TSO, |
| 53 | + .name = "TSO", | ||
| 54 | + .description = N_( "Other (TSO)" ), | ||
| 55 | + .tooltip = NULL | ||
| 56 | }, | 56 | }, |
| 57 | { | 57 | { |
| 58 | - 0, | ||
| 59 | - "VM/CMS", | ||
| 60 | - N_( "Other (VM/CMS)" ), | ||
| 61 | - NULL | 58 | + .type = LIB3270_HOST_OTHER, |
| 59 | + .name = "VM/CMS", | ||
| 60 | + .description = N_( "Other (VM/CMS)" ), | ||
| 61 | + .tooltip = NULL | ||
| 62 | }, | 62 | }, |
| 63 | 63 | ||
| 64 | { | 64 | { |
| 65 | - 0, | ||
| 66 | - NULL, | ||
| 67 | - NULL, | ||
| 68 | - NULL | 65 | + .type = LIB3270_HOST_OTHER, |
| 66 | + .name = NULL, | ||
| 67 | + .description = NULL, | ||
| 68 | + .tooltip = NULL | ||
| 69 | } | 69 | } |
| 70 | }; | 70 | }; |
| 71 | 71 |
src/include/lib3270.h
| @@ -279,10 +279,10 @@ typedef enum lib3270_field_attribute { | @@ -279,10 +279,10 @@ typedef enum lib3270_field_attribute { | ||
| 279 | * | 279 | * |
| 280 | */ | 280 | */ |
| 281 | typedef enum lib3270_host_type { | 281 | typedef enum lib3270_host_type { |
| 282 | + LIB3270_HOST_OTHER = 0x0000, ///< @brief Other. | ||
| 282 | LIB3270_HOST_AS400 = 0x0001, ///< @brief AS400 host - Prefix every PF with PA1 | 283 | LIB3270_HOST_AS400 = 0x0001, ///< @brief AS400 host - Prefix every PF with PA1 |
| 283 | LIB3270_HOST_TSO = 0x0002, ///< @brief Host is TSO | 284 | LIB3270_HOST_TSO = 0x0002, ///< @brief Host is TSO |
| 284 | LIB3270_HOST_S390 = 0x0006, ///< @brief Host is S390 (TSO included) | 285 | LIB3270_HOST_S390 = 0x0006, ///< @brief Host is S390 (TSO included) |
| 285 | - | ||
| 286 | } LIB3270_HOST_TYPE; | 286 | } LIB3270_HOST_TYPE; |
| 287 | 287 | ||
| 288 | #define LIB3270_HOSTTYPE_DEFAULT LIB3270_HOST_S390 | 288 | #define LIB3270_HOSTTYPE_DEFAULT LIB3270_HOST_S390 |