Changeset 75383 in vbox
- Timestamp:
- Nov 10, 2018 1:44:06 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/include/VBox/shflsvc.h (modified) (29 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/shflsvc.h
r75380 r75383 1 1 /** @file 2 * Shared Folders :Common header for host service and guest clients.2 * Shared Folders - Common header for host service and guest clients. 3 3 */ 4 4 … … 45 45 46 46 47 48 /** @defgroup grp_vbox_shfl Shared Folder Interface Definition. 49 * 50 * Structures shared between guest and the service can be relocated and use 51 * offsets to point to variable length parts. 52 * 53 * Shared folders protocol works with handles. Before doing any action on a 54 * file system object, one have to obtain the object handle via a SHFL_FN_CREATE 55 * request. A handle must be closed with SHFL_FN_CLOSE. 56 * 57 * @{ 58 */ 59 47 60 /** @name Some bit flag manipulation macros. 48 61 * @{ */ … … 61 74 62 75 63 /** 64 * Structures shared between guest and the service 65 * can be relocated and use offsets to point to variable 66 * length parts. 67 */ 68 69 /** 70 * Shared folders protocol works with handles. 71 * Before doing any action on a file system object, 72 * one have to obtain the object handle via a SHFL_FN_CREATE 73 * request. A handle must be closed with SHFL_FN_CLOSE. 74 */ 75 76 /** Shared Folders service functions. (guest) 77 * @{ 78 */ 79 76 /** @name Shared Folders service functions. (guest) 77 * @{ 78 */ 80 79 /** Query mappings changes. */ 81 80 #define SHFL_FN_QUERY_MAPPINGS (1) … … 116 115 /** Ask host to show symlinks (as of VBox 4.0) */ 117 116 #define SHFL_FN_SET_SYMLINKS (20) 118 119 /** @} */ 117 /** @} */ 118 120 119 121 120 /** Shared Folders service functions. (host) 122 * @{ 123 */ 124 121 * @{ 122 */ 125 123 /** Add shared folder mapping. */ 126 124 #define SHFL_FN_ADD_MAPPING (1) … … 133 131 /** @} */ 134 132 133 135 134 /** Root handle for a mapping. Root handles are unique. 136 * @note 137 * Function parameters structures consider 138 * the root handle as 32 bit value. If the typedef 139 * will be changed, then function parameters must be 140 * changed accordingly. All those parameters are marked 141 * with SHFLROOT in comments. 135 * 136 * @note Function parameters structures consider the root handle as 32 bit 137 * value. If the typedef will be changed, then function parameters must be 138 * changed accordingly. All those parameters are marked with SHFLROOT in 139 * comments. 142 140 */ 143 141 typedef uint32_t SHFLROOT; 144 142 143 /** NIL shared folder root handle. */ 145 144 #define SHFL_ROOT_NIL ((SHFLROOT)~0) 146 145 … … 156 155 /** Hardcoded maximum number of shared folder mapping available to the guest. */ 157 156 #define SHFL_MAX_MAPPINGS (64) 157 158 158 159 159 /** @name Shared Folders strings. They can be either UTF-8 or UTF-16. … … 681 681 682 682 683 /** Open/create flags.683 /** @name Open/create flags. 684 684 * @{ 685 685 */ … … 787 787 788 788 789 /** Shared Folders mappings.790 * @{789 /** @name Shared Folders mappings. 790 * @{ 791 791 */ 792 792 … … 808 808 /** @} */ 809 809 810 /** Shared Folder directory information 811 * @{ 810 811 /** @name Shared Folder directory information 812 * @{ 812 813 */ 813 814 … … 901 902 /** @} */ 902 903 903 /** Function parameter structures. 904 * @{ 905 */ 906 907 /** 908 * SHFL_FN_QUERY_MAPPINGS 904 905 /** @defgroup grp_vbox_shfl_params Function parameter structures. 906 * @{ 907 */ 908 909 /** @name SHFL_FN_QUERY_MAPPINGS 910 * @{ 909 911 */ 910 912 /** Validation mask. Needs to be adjusted 911 913 * whenever a new SHFL_MF_ flag is added. */ 912 914 #define SHFL_MF_MASK (0x00000011) 913 /** U C2enconded strings. */915 /** UTF-16 enconded strings. */ 914 916 #define SHFL_MF_UCS2 (0x00000000) 915 917 /** Guest uses UTF8 strings, if not set then the strings are unicode (UCS2). */ … … 918 920 #define SHFL_MF_AUTOMOUNT (0x00000010) 919 921 920 /** Type of guest system. For future system dependent features. */921 #define SHFL_MF_SYSTEM_MASK (0x0000FF00)922 #define SHFL_MF_SYSTEM_NONE (0x00000000)923 #define SHFL_MF_SYSTEM_WINDOWS (0x00000100)924 #define SHFL_MF_SYSTEM_LINUX (0x00000200)925 926 922 /** Parameters structure. */ 927 923 typedef struct _VBoxSFQueryMappings … … 950 946 /** Number of parameters */ 951 947 #define SHFL_CPARMS_QUERY_MAPPINGS (3) 952 953 954 955 /** 956 * SHFL_FN_QUERY_MAP_NAME948 /** @} */ 949 950 951 /** @name SHFL_FN_QUERY_MAP_NAME 952 * @{ 957 953 */ 958 954 … … 976 972 /** Number of parameters */ 977 973 #define SHFL_CPARMS_QUERY_MAP_NAME (2) 978 979 /** 980 * SHFL_FN_MAP_FOLDER_OLD 974 /** @} */ 975 976 977 /** @name SHFL_FN_MAP_FOLDER_OLD 978 * @{ 981 979 */ 982 980 … … 1005 1003 /** Number of parameters */ 1006 1004 #define SHFL_CPARMS_MAP_FOLDER_OLD (3) 1007 1008 /** 1009 * SHFL_FN_MAP_FOLDER 1005 /** @} */ 1006 1007 1008 /** @name SHFL_FN_MAP_FOLDER 1009 * @{ 1010 1010 */ 1011 1011 … … 1039 1039 /** Number of parameters */ 1040 1040 #define SHFL_CPARMS_MAP_FOLDER (4) 1041 1042 /** 1043 * SHFL_FN_UNMAP_FOLDER 1041 /** @} */ 1042 1043 1044 /** @name SHFL_FN_UNMAP_FOLDER 1045 * @{ 1044 1046 */ 1045 1047 … … 1058 1060 /** Number of parameters */ 1059 1061 #define SHFL_CPARMS_UNMAP_FOLDER (1) 1060 1061 1062 /** 1063 * SHFL_FN_CREATE 1062 /** @} */ 1063 1064 1065 /** @name SHFL_FN_CREATE 1066 * @{ 1064 1067 */ 1065 1068 … … 1088 1091 /** Number of parameters */ 1089 1092 #define SHFL_CPARMS_CREATE (3) 1090 1091 1092 /** 1093 * SHFL_FN_CLOSE 1093 /** @} */ 1094 1095 1096 /** @name SHFL_FN_CLOSE 1097 * @{ 1094 1098 */ 1095 1099 … … 1114 1118 /** Number of parameters */ 1115 1119 #define SHFL_CPARMS_CLOSE (2) 1116 1117 1118 /** 1119 * SHFL_FN_READ 1120 /** @} */ 1121 1122 1123 /** @name SHFL_FN_READ 1124 * @{ 1120 1125 */ 1121 1126 … … 1154 1159 /** Number of parameters */ 1155 1160 #define SHFL_CPARMS_READ (5) 1156 1157 1158 1159 /** 1160 * SHFL_FN_WRITE1161 /** @} */ 1162 1163 1164 /** @name SHFL_FN_WRITE 1165 * @{ 1161 1166 */ 1162 1167 … … 1195 1200 /** Number of parameters */ 1196 1201 #define SHFL_CPARMS_WRITE (5) 1197 1198 1199 1200 /** 1201 * SHFL_FN_LOCK 1202 */ 1203 1204 /** Lock owner is the HGCM client. */ 1202 /** @} */ 1203 1204 1205 /** @name SHFL_FN_LOCK 1206 * @remarks Lock owner is the HGCM client. 1207 * @{ 1208 */ 1205 1209 1206 1210 /** Lock mode bit mask. */ … … 1257 1261 /** Number of parameters */ 1258 1262 #define SHFL_CPARMS_LOCK (5) 1259 1260 1261 1262 /** 1263 * SHFL_FN_FLUSH1263 /** @} */ 1264 1265 1266 /** @name SHFL_FN_FLUSH 1267 * @{ 1264 1268 */ 1265 1269 … … 1283 1287 /** Number of parameters */ 1284 1288 #define SHFL_CPARMS_FLUSH (2) 1285 1286 /** 1287 * SHFL_FN_LIST 1288 */ 1289 1290 /** Listing information includes variable length RTDIRENTRY[EX] structures. */ 1289 /** @} */ 1290 1291 1292 /** @name SHFL_FN_LIST 1293 * @remarks Listing information includes variable length RTDIRENTRY[EX] 1294 * structures. 1295 * @{ 1296 */ 1291 1297 1292 1298 /** @todo might be necessary for future. */ 1293 1299 #define SHFL_LIST_NONE 0 1294 #define SHFL_LIST_RETURN_ONE 11300 #define SHFL_LIST_RETURN_ONE 1 1295 1301 1296 1302 /** Parameters structure. */ … … 1345 1351 /** Number of parameters */ 1346 1352 #define SHFL_CPARMS_LIST (8) 1347 1348 1349 1350 /** 1351 * SHFL_FN_READLINK1353 /** @} */ 1354 1355 1356 /** @name SHFL_FN_READLINK 1357 * @{ 1352 1358 */ 1353 1359 … … 1376 1382 /** Number of parameters */ 1377 1383 #define SHFL_CPARMS_READLINK (3) 1378 1379 1380 1381 /** 1382 * SHFL_FN_INFORMATION1384 /** @} */ 1385 1386 1387 /** @name SHFL_FN_INFORMATION 1388 * @{ 1383 1389 */ 1384 1390 … … 1437 1443 /** Number of parameters */ 1438 1444 #define SHFL_CPARMS_INFORMATION (5) 1439 1440 1441 /** 1442 * SHFL_FN_REMOVE 1445 /** @} */ 1446 1447 1448 /** @name SHFL_FN_REMOVE 1449 * @{ 1443 1450 */ 1444 1451 … … 1470 1477 1471 1478 #define SHFL_CPARMS_REMOVE (3) 1472 1473 1474 /** 1475 * SHFL_FN_RENAME 1479 /** @} */ 1480 1481 1482 /** @name SHFL_FN_RENAME 1483 * @{ 1476 1484 */ 1477 1485 … … 1508 1516 1509 1517 #define SHFL_CPARMS_RENAME (4) 1510 1511 1512 /** 1513 * SHFL_FN_SYMLINK 1518 /** @} */ 1519 1520 1521 /** @name SHFL_FN_SYMLINK 1522 * @{ 1514 1523 */ 1515 1524 … … 1542 1551 1543 1552 #define SHFL_CPARMS_SYMLINK (4) 1544 1545 1546 1547 /** 1548 * SHFL_FN_ADD_MAPPING 1549 * Host call, no guest structure is used. 1553 /** @} */ 1554 1555 1556 1557 /** @name SHFL_FN_ADD_MAPPING 1558 * @note Host call, no guest structure is used. 1559 * @{ 1550 1560 */ 1551 1561 … … 1560 1570 1561 1571 #define SHFL_CPARMS_ADD_MAPPING (4) 1562 1563 /** 1564 * SHFL_FN_REMOVE_MAPPING 1565 * Host call, no guest structure is used. 1572 /** @} */ 1573 1574 1575 /** @name SHFL_FN_REMOVE_MAPPING 1576 * @note Host call, no guest structure is used. 1577 * @{ 1566 1578 */ 1567 1579 1568 1580 #define SHFL_CPARMS_REMOVE_MAPPING (1) 1569 1570 1571 /** 1572 * SHFL_FN_SET_STATUS_LED 1573 * Host call, no guest structure is used. 1581 /** @} */ 1582 1583 1584 /** @name SHFL_FN_SET_STATUS_LED 1585 * @note Host call, no guest structure is used. 1586 * @{ 1574 1587 */ 1575 1588 1576 1589 #define SHFL_CPARMS_SET_STATUS_LED (1) 1577 1590 /** @} */ 1591 1592 1593 /** @} */ 1578 1594 /** @} */ 1579 1595
Note:
See TracChangeset
for help on using the changeset viewer.

