|
root / base / usr / src / lib / mpapi / libmpapi / common / mpapi.h
mpapi.h C 2594 lines 82.6 KB
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
/******************************************************************************
 *
 * Description
 *  mpapi.h - general header file for Multipath Management API Version 1.0
 *  client
 *
 * License:
 *  The contents of this file are subject to the SNIA Public License
 *  Version 1.1 (the "License"); you may not use this file except in
 *  compliance with the License. You may obtain a copy of the License at
 *
 *  http://mp-mgmt-api.sourceforge.net
 *
 *  Software distributed under the License is distributed on an "AS IS"
 *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 *  the License for the specific language governing rights and limitations
 *  under the License.
 *
 * The Original Code is  SNIA iSCSI Management API and Multipath Management API
 *	general header file
 *
 * The Initial Developer of the Original Code is:
 *	Benjamin F. Kuo Troika Networks, Inc. (benk@troikanetworks.com)
 *	David Dillard	VERITAS Software(david.dillard@veritas.com)
 *	Jeff Ding	Adaptec, Inc. (jding@corp.adaptec.com)
 *	Dave Wysochanski Network Appliance, Inc. (davidw@netapp.com)
 *      Hyon Kim       	Sun Microsystems(hyon.kim@sun.com)
 *
 * Contributor(s):
 *	Paul von Behren Sun Microsystems(paul.vonbehren@sun.com)
 *
 ******************************************************************************
 *
 *   Changes:
 *  1/15/2005   Implemented SNIA MP API specification 1.0
 *  10/11/2005
 *		- Added the license location in the header comment.
 *	  	- Added an implementation note in constants and macros
 *		  declarations section.
 *		- Fixed field name value in struct _MP_PROPRIETARY_PROPERTY.
 *		- Fixed typo in logicalUnitGroupID in
 *		  _MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES
 *		- Fixed typo in desiredState in struct _MP_TPG_STATE_PAIR.
 *		- Fixed typo in API name MP_GetTargetPortGroupProperties.
 *		- Clarified description of MP_STATUS_INVALID_PARAMETER error
 *		  in MP_GetObjectType().
 *		- Fixed typo in API name
 *		  MP_GetProprietaryLoadBalanceProperties().
 *  3/6/2006
 *		- mpapi.h header file is updated for
 *		  MP_LOAD_BALANCE_TYPE change in the spec.
 *****************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif


#ifndef MPAPI_H
#define MPAPI_H

#include <time.h>
#include <wchar.h>
#include <string.h>
#include <stdlib.h>


/* Library version string */
#define MP_LIBVERSION 1

/**
 *******************************************************************************
 *
 * Generic MP Constant Definitions
 *
 *******************************************************************************
 */
#define RL_LIBRARY_SEQNUM           0

/**
* Value which can be assigned to an MP_BOOL and or an MP_XBOOL.
*/
#define MP_TRUE        1

/**
* Value which can be assigned to an MP_BOOL and or an MP_XBOOL.
*/
#define MP_FALSE       0

/**
* Value which can be assigned to an MP_XBOOL.
*/
#define MP_UNKNOWN     0xFFFFFFFF

#define MP_MAX_NUM_PLUGINS	64
#define MP_OBJECT_TYPE_MATCH	1
#define MP_OBJECT_TYPE_ANY	2
#define MAX_NAME_SIZE		256
#define MAX_LINE_SIZE		515


/**
 ******************************************************************************
 *
 * Base MP API Type Definitions
 *
 ******************************************************************************
 */

typedef unsigned char   MP_UINT8;  /* unsigned  8 bits */
typedef char            MP_INT8;   /* signed    8 bits */
typedef unsigned short  MP_UINT16; /* unsigned 16 bits */
typedef short           MP_INT16;  /* signed   16 bits */
typedef unsigned int    MP_UINT32; /* unsigned 32 bits */
typedef int             MP_INT32;  /* signed   32 bits */
typedef void*           MP_PVOID;  /* pointer  to void */
typedef MP_UINT32       MP_VOID32; /* opaque   32 bits */
typedef long long	MP_INT64;  /* signed   64 bits */
typedef unsigned long long	 MP_UINT64; /* unsigned 64 bits */

/**
 * A character.
 */
typedef char MP_CHAR;

/**
 * A wide character.
 */
typedef wchar_t MP_WCHAR;

/**
 * An unsigned character.
 */
typedef unsigned char MP_BYTE;

/**
 * A boolean.
 */
typedef MP_UINT32 MP_BOOL;

/**
 * An extended boolean: can have the values @ref MP_TRUE, @ref MP_FALSE, and
 * @ref MP_UNKNOWN.
 */
typedef MP_UINT32 MP_XBOOL;

/**
 ******************************************************************************
 *
 * Constants and macros declarations related to MP_STATUS
 * Implementation Notes:  This library does validation for OID argument and
 *			  returns the following errors.
 *
 *		1. MP_STATUS_INVALID_OBJECT_TYPE when input OID type is not
 *		   one of legitimate types defined SNIA Multipath Management
 *		   Spec.
 *		2. MP_STATUS_INVALID_PARAMETER when input OID type is
 *		   legitimate but not a proper type for API.
 *		3. MP_STATUS_OBJECT_NOT_FOUND when the ownerId of input OID is
 *		   not found or no object instance with matching
 *		   sequenceNumber is found.
 *		   The ownerId is validated by the common library and the
 *		   sequence number is validated by the plugin library.
 *
 ******************************************************************************
 */
typedef enum {
    MP_STATUS_SUCCESS               = 0,
    MP_STATUS_INVALID_PARAMETER     = 1,
    MP_STATUS_UNKNOWN_FN	    = 2,
    MP_STATUS_FAILED                = 3,
    MP_STATUS_INSUFFICIENT_MEMORY   = 4,
    MP_STATUS_INVALID_OBJECT_TYPE   = 5,
    MP_STATUS_OBJECT_NOT_FOUND      = 6,
    MP_STATUS_UNSUPPORTED           = 7,
    MP_STATUS_FN_REPLACED           = 8,
    MP_STATUS_ACCESS_STATE_INVALID  = 9,
    MP_STATUS_INVALID_WEIGHT        = 10,
    MP_STATUS_PATH_NONOPERATIONAL   = 11,
    MP_STATUS_TRY_AGAIN		    = 12,
    MP_STATUS_NOT_PERMITTED	    = 13

} MP_STATUS;

/**
 ******************************************************************************
 *
 * Declaration of the MP_PATH_STATE constants
 *
 ******************************************************************************
 */
#define MP_PATH_STATE_OKAY	    0
#define MP_PATH_STATE_PATH_ERR      1
#define MP_PATH_STATE_LU_ERR        2
#define MP_PATH_STATE_RESERVED      3
#define MP_PATH_STATE_REMOVED       4
#define MP_PATH_STATE_TRANSITIONING 5
#define MP_PATH_STATE_OPERATIONAL_CLOSED    6
#define MP_PATH_STATE_INVALID_CLOSED	    7
#define MP_PATH_STATE_OFFLINE_CLOSED	    8
#define MP_PATH_STATE_UNKNOWN       	    9

typedef MP_UINT32 MP_PATH_STATE;

/**
 *******************************************************************************
 *
 * Declaration of the MP_OBJECT_TYPE constants
 *
 *******************************************************************************
 */
#define MP_OBJECT_TYPE_UNKNOWN              0
#define MP_OBJECT_TYPE_PLUGIN               1
#define MP_OBJECT_TYPE_INITIATOR_PORT       2
#define MP_OBJECT_TYPE_TARGET_PORT          3
#define MP_OBJECT_TYPE_MULTIPATH_LU         4
#define MP_OBJECT_TYPE_PATH_LU              5
#define MP_OBJECT_TYPE_DEVICE_PRODUCT       6
#define MP_OBJECT_TYPE_TARGET_PORT_GROUP    7
#define MP_OBJECT_TYPE_PROPRIETARY_LOAD_BALANCE	8

/* set to the highest constant of object type. */
#define MP_OBJECT_TYPE_MAX          8

typedef MP_UINT32 MP_OBJECT_TYPE;

/**
 *******************************************************************************
 *
 * Declaration of the MP_PORT_TRANSPORT_TYPE
 *
 *******************************************************************************
 */
#define MP_PORT_TRANSPORT_TYPE_UNKNOWN  0
#define MP_PORT_TRANSPORT_TYPE_MPNODE   1
#define MP_PORT_TRANSPORT_TYPE_FC       2
#define MP_PORT_TRANSPORT_TYPE_SPI      3
#define MP_PORT_TRANSPORT_TYPE_ISCSI    4
#define MP_PORT_TRANSPORT_TYPE_IFB      5

typedef MP_UINT32 MP_PORT_TRANSPORT_TYPE;

/**
 *******************************************************************************
 *
 * Declaration of the MP_ACCESS_STATE_TYPE constants
 *
 *******************************************************************************
 */
#define MP_ACCESS_STATE_ACTIVE_OPTIMIZED    (0x0)
#define MP_ACCESS_STATE_ACTIVE_NONOPTIMIZED (0x1)
#define MP_ACCESS_STATE_STANDBY             (0x2)
#define MP_ACCESS_STATE_UNAVAILABLE         (0x3)
#define MP_ACCESS_STATE_TRANSITIONING       (0xF)
#define MP_ACCESS_STATE_ACTIVE              (0x10)

typedef MP_UINT32 MP_ACCESS_STATE_TYPE;

/**
 *******************************************************************************
 *
 * Declaration of the MP_LOAD_BALANCE_TYPE constants
 *
 *******************************************************************************
 */
#define MP_LOAD_BALANCE_TYPE_UNKNOWN        (1<<0)
#define MP_LOAD_BALANCE_TYPE_ROUNDROBIN     (1<<1)
#define MP_LOAD_BALANCE_TYPE_LEASTBLOCKS    (1<<2)
#define MP_LOAD_BALANCE_TYPE_LEASTIO        (1<<3)
#define MP_LOAD_BALANCE_TYPE_DEVICE_PRODUCT (1<<4)
#define MP_LOAD_BALANCE_TYPE_LBA_REGION     (1<<5)
#define MP_LOAD_BALANCE_TYPE_FAILOVER_ONLY  (1<<6)
/**
 * Proprietary load balance type should start from 0x10000(1<<16) or greater.
 * It is exposed through API MP_GetProprietaryLoadBalanceProperties if exists.
 */

typedef MP_UINT32 MP_LOAD_BALANCE_TYPE;

typedef struct mpPluginInfo {
      MP_WCHAR        pluginName[MAX_NAME_SIZE];
      MP_CHAR         pluginPath[MAX_NAME_SIZE];
      void*           hdlPlugin;
      MP_UINT32       ownerId;
} MPPLUGININFO_T;


/**
 *******************************************************************************
 *
 * Declaration of the MP_PROPRIETARY_PROPERTY
 *
 *******************************************************************************
 */
typedef struct _MP_PROPRIETARY_PROPERTY
{
    MP_WCHAR                name[16];
    MP_WCHAR                value[48];

} MP_PROPRIETARY_PROPERTY;

/**
 *******************************************************************************
 *
 * Declaration of the MP_PROPRIETARY_LOAD_BALANCE_PROPERTIES
 *
 *******************************************************************************
 */
typedef struct _MP_PROPRIETARY_LOAD_BALANCE_PROPERTIES
{
    MP_LOAD_BALANCE_TYPE    typeIndex;
    MP_WCHAR                name[256];
    MP_WCHAR                vendorName[256];
    MP_UINT32		    proprietaryPropertyCount;
    MP_PROPRIETARY_PROPERTY proprietaryProperties[8];

} MP_PROPRIETARY_LOAD_BALANCE_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_UINT32 MP_LOGICAL_UNIT_NAME_TYPE constants
 *
 *******************************************************************************
 */
#define MP_LU_NAME_TYPE_UNKNOWN         0
#define MP_LU_NAME_TYPE_VPD83_TYPE1     1
#define MP_LU_NAME_TYPE_VPD83_TYPE2     2
#define MP_LU_NAME_TYPE_VPD83_TYPE3     3
#define MP_LU_NAME_TYPE_DEVICE_SPECIFIC 4

typedef MP_UINT32 MP_LOGICAL_UNIT_NAME_TYPE;

/**
 *******************************************************************************
 *
 * Declaration of the MP_UINT32 MP_AUTOFAILBACK_SUPPORT constants
 *
 *******************************************************************************
 */
#define MP_AUTOFAILBACK_SUPPORT_NONE	0
#define MP_AUTOFAILBACK_SUPPORT_PLUGIN	1
#define MP_AUTOFAILBACK_SUPPORT_MPLU	2
#define MP_AUTOFAILBACK_SUPPORT_PLUGINANDMPLU	3

typedef MP_UINT32 MP_AUTOFAILBACK_SUPPORT;

/**
 *******************************************************************************
 *
 * Declaration of the MP_UINT32 MP_AUTOPROBING_SUPPORT constants
 *
 *******************************************************************************
 */
#define MP_AUTOPROBING_SUPPORT_NONE	0
#define MP_AUTOPROBING_SUPPORT_PLUGIN	1
#define MP_AUTORPOBING_SUPPORT_MPLU	2
#define MP_AUTORPOBING_SUPPORT_PLUGINANDMPLU	3

typedef MP_UINT32 MP_AUTOPROBING_SUPPORT;

/**
 *******************************************************************************
 *
 * Declaration of the MP_OID structure
 *
 * This structure should be treated as opaque by clients of the API.
 * Appropriate APIs should be used to extract information from the structure.
 *
 * Also ZERO_OID is defined for APIs that may handle multiple plugin OIDs.
 *
 *******************************************************************************
 */
typedef struct _MP_OID
{
    /**
     * The type of the object.  When an object ID is supplied as a parameter
     * to an API the library uses this value to insure that the supplied
     * object ID's type is appropriate for the API.
     */
    MP_OBJECT_TYPE objectType;

    /**
     * A value determined by the library which it uses to uniquely identify the
     * owner of an object.  The owner of an object is either the library itself
     * or a plugin.  When an object ID is supplied as a parameter to an API the
     * library uses this value to determine if it should handle the call itself
     * or direct the call to one or more plugins.
     */
    MP_UINT32      ownerId;

    /**
     * A value determined by a plugin which a plugin uses, perhaps in
     * combination with the object type, to uniquely identify one of its
     * objects.
     */
    MP_UINT64      objectSequenceNumber;

} MP_OID;

#define ZERO_OID ((const MP_OID){MP_OBJECT_TYPE_UNKNOWN,0,0})

/**
 *******************************************************************************
 *
 * Declaration of the MP_OID_LIST structure
 *
 * This structure is used by a number of APIs to return lists of objects.  Any
 * instance of this structure returned by an API must be freed by a client
 * using the MP_FreeOidList API.  Although oids is declared to be an
 * array of one
 * @ref MP_OID structure it can in fact contain any number of
 * @ref MP_OID structures.  The oidCount indicates the number of @ref MP_OID
 * structures in the oids array.
 *
 * @note The @a oids array is a variable length array, despite its declaration
 *       below it can be of any length.
 *
 *******************************************************************************
 */
typedef struct _MP_OID_LIST
{
    /**
     * The number of object IDs in the @a oids array.
     */
    MP_UINT32       oidCount;

    /**
     * A variable length array of zero or more object IDs.  There are
     * 'oidCount' object IDs in this array.
     */
    MP_OID         oids[1];

} MP_OID_LIST;

/**
 *******************************************************************************
 *
 * Declaration of the MP_LIBRARY_PROPERTIES structure
 *
 * This structure is returned by the MP_GetLibraryProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_LIBRARY_PROPERTIES
{
    /**
     * The version of the Multipath Management API implemented by the library.
     */
    MP_UINT32       supportedMpVersion;

    /**
     * A null terminated ASCII string containing the name of the vendor that
     * created the binary version of the library.
     */
    MP_WCHAR        vendor[256];

    /**
     * A null terminated ASCII string containing the implementation version
     * of the library from the vendor specified in the 'vendor' field.
     */
    MP_WCHAR        implementationVersion[256];

    /**
     * A null terminated ASCII string ideally containing the path and file
     * name of the library that is being used by the currently executing
     * process can be found. If the path cannot be determined then it is
     * acceptable to fill this field with only the name (and extension if
     * applicable) of the file of the library.  If this cannot be determined
     * then this field should be an empty string.
     */
    MP_CHAR        fileName[256];

    /**
     * The time and date that the library that is executing was built.
     */
    MP_WCHAR        buildTime[256];

} MP_LIBRARY_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_PLUGIN_PROPERTIES structure
 *
 * This structure is returned by the MP_GetPluginProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_PLUGIN_PROPERTIES
{
    /**
     * The version of the Multipath Management API implemented by a plugin.
     */
    MP_UINT32 supportedMpVersion;

    /**
     * A null terminated Unicode string containing the name of the vendor that
     * created the binary version of the plugin.
     */
    MP_WCHAR vendor[256];

    /**
     * A null terminated Unicode string containing the implementation version
     * of the plugin from the vendor specified in vendor.
     */
    MP_WCHAR implementationVersion[256];

    /**
     * A null terminated ASCII string ideally containing the path and file
     * name of the plugin that is filling in this structure.
     */
    MP_CHAR fileName[256];

    /**
     * The time and date that the plugin that is executing was built.
     */
    MP_WCHAR buildTime[256];

    /**
     * A null terminated Unicode string containing the name of the multipath
     * driver vendor associated with this plugin.
     */
    MP_WCHAR driverVendor[256];

    /**
     * A null terminated Unicode string ideally containing the path and file
     * name of the plugin that is filling in this structure.
     */
    MP_CHAR driverName[256];

    /**
     * A null terminated Unicode string containing the version number of
     * the multipath driver.
     */
    MP_WCHAR driverVersion[256];

    /**
     * A set of flags representing the load balance types
     * (MP_LOAD_BALANCE_TYPES) supported by the plugin/driver as a plugin-wide
     * property.
     */
    MP_UINT32 supportedLoadBalanceTypes;

    /**
     * boolean indicating whether the implementation supports activating target
     * port groups.
     */
    MP_BOOL canSetTPGAccess;

    /**
     * A Boolean indicating whether the implementations supports overriding
     * paths. Setting this to true indicates MP_SetOverridePath and
     * MP_CancelOverridePath are supported.
     */
    MP_BOOL canOverridePaths;

    /**
     * A boolean indicating whether the implementation exposes (or leaves
     * exposed) device files for the individual paths encapsulated by the
     * multipath device file. This is typically true for MP drivers that sit
     * near the top of the driver stack..
     */
    MP_BOOL exposesPathDeviceFiles;

    /**
     * A string representing the primary file names the driver uses for
     * multipath logical units.
     */
    MP_CHAR deviceFileNamespace[256];

    /**
     * A boolean indicating whether the driver limits multipath capabilities
     * to certain device types. If true, then the driver only provides multipath
     * support to devices exposed through MP_DEVICE_PRODUCT_PROPERTIES
     * instances. If false, then the driver supports any device that provides
     * standard SCSI logical unit identifiers.
     */
    MP_BOOL onlySupportsSpecifiedProducts;

    /**
     * Describes the range of administer settable path weights supported by the
     * driver. A driver with no path preference capabilities should set
     * this property to zero. A driver with the ability to enable/disable
     * paths should set this property to 1. Drivers with more weight settings
     * can set the property appropriately.
     */
    MP_UINT32 maximumWeight;

    /**
     * The autofailback support indicates whether the implementation supports
     * auto-failback (to reenable paths that revert to a good state) at the
     * plugin level, the multipath logical unit level, both levels or whether
     * auto-failback is unsupported.
     */
    MP_AUTOFAILBACK_SUPPORT autoFailbackSupport;

    /**
     * A Boolean indicating whether plugin-wide autofailback is currently
     * enabled. This parameter is undefined if autoFailbackSupport is
     * MP_AUTOFAILBACK_SUPPORT_NONE or MP_AUTOFAILBACK_SUPPORT_MPLU.
     */
    MP_BOOL pluginAutoFailbackEnabled;

    /**
     * The maximum plugin-wide polling rate (in seconds) for auto-failback
     * supported by the driver. A value of zero indicates the driver/plugin
     * does not support polling. Undefined if autoFailbackSupport is
     * MP_AUTOFAILBACK_SUPPORT_NONE or MP_AUTOFAILBACK_SUPPORT_MPLU. If the
     * plugin/driver supports auto-failback without polling or does not provide
     * a way to set the polling rate, then this must be set to zero (0).
     * This value is set by the plugin and cannot be modified by users.
     */
    MP_UINT32 failbackPollingRateMax;

    /**
     * The current plugin-wide auto-failback polling rate (in seconds).
     * Undefined if autofailbackSupport is MP_AUTOFAILBACK_SUPPORT_NONE or
     * MP_AUTOFAILBACK_SUPPORT_MPLU. Cannot be more that plooingRateMax.
     */
    MP_UINT32 currentFailbackPollingRate;

    /**
     * An enumerated type indicating whether the implementation supports
     * auto-probing at the plugin level, the multipath logical unit level, both
     * levels or whether auto-probing is unsupported.
     */
    MP_AUTOPROBING_SUPPORT autoProbingSupport;

    /**
     * A boolean indicating that plugin-wide auto-probing is enabled. This
     * property is undefined if autoProbingSupport is
     * MP_AUTOPROBING_SUPPORT_NONE or MP_AUTOPROBING_SUPPORT_MPLU.
     */
    MP_BOOL pluginAutoProbingEnabled;

    /**
     * The maximum plugin-wide polling rate (in seconds) for auto-probing
     * supported by the driver. Undefined if autoProbingSupport is
     * MP_AUTOPROBING_SUPPORT_NONE or MP_AUTOPROBING_SUPPORT_MPLU. If the
     * plugin/driver supports auto-probing without polling or does not provide a
     * way to set the probing polling rate, then this must be set to zero (0).
     * This value is set by the plugin and cannot be modified by users.
     */
    MP_UINT32 probingPollingRateMax;

    /**
     * The current plugin-wide auto-probing polling rate (in seconds).
     * Undefined if autoProbingSupport is MP_AUTOPROBING_SUPPORT_NONE or
     * MP_AUTOPROBING_SUPPORT_MPLU. Cannot be more that probingPollingRateMax.
     */
    MP_UINT32 currentProbingPollingRate;

    /**
     * The load balance type that will be used by the driver for devices
     * (without a corresponding MP_DEVICE_PRODUCT_PROPERTIES instance) unless
     * overridden by the administrator. Any logical unit with vendor, product,
     * and revision properties matching a MP_DEVICE_PRODUCT_PROPERTIES instance
     * will default to a device-specific load balance type.
     */
    MP_LOAD_BALANCE_TYPE defaultloadBalanceType;

    /**
     * The count of proprietary properties (less that or equal to eight)
     * supported.
     */
    MP_UINT32	proprietaryPropertyCount;

    /**
     * A list of proprietary property name/value pairs.
     */
    MP_PROPRIETARY_PROPERTY proprietaryProperties[8];

} MP_PLUGIN_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_DEVICE_PRODUCT_PROPERTIES structure.
 *
 * This structure is returned by the MP_GetDeviceProductProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_DEVICE_PRODUCT_PROPERTIES
{
    MP_CHAR	    vendor[8];
    MP_CHAR	    product[16];
    MP_CHAR	    revision[4];
    MP_UINT32	    supportedLoadBalanceTypes;

} MP_DEVICE_PRODUCT_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES structure.
 *
 * This structure is returned by the MP_GetMPLogicalUnitProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES
{
    MP_CHAR			vendor[8];
    MP_CHAR			product[16];
    MP_CHAR			revision[4];
    MP_CHAR			name[256];
    MP_LOGICAL_UNIT_NAME_TYPE   nameType;
    MP_CHAR			deviceFileName[256];
    MP_BOOL			asymmetric;
    MP_OID			overridePath;
    MP_LOAD_BALANCE_TYPE	currentLoadBalanceType;
    MP_UINT32			logicalUnitGroupID;
    MP_XBOOL			autoFailbackEnabled;
    MP_UINT32			failbackPollingRateMax;
    MP_UINT32			currentFailbackPollingRate;
    MP_XBOOL 			autoProbingEnabled;
    MP_UINT32 			probingPollingRateMax;
    MP_UINT32 			currentProbingPollingRate;
    MP_UINT32 			proprietaryPropertyCount;
    MP_PROPRIETARY_PROPERTY 	proprietaryProperties[8];

} MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_PATH_LOGICAL_UNIT_PROPERTIES structure.
 *
 * This structure is returned by the MP_GetPathLogicalUnitProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_PATH_LOGICAL_UNIT_PROPERTIES
{
    MP_UINT32	    weight;
    MP_PATH_STATE   pathState;
    MP_BOOL	    disabled;
    MP_OID	    initiatorPortOid;
    MP_OID	    targetPortOid;
    MP_OID	    logicalUnitOid;
    MP_UINT64	    logicalUnitNumber;
    MP_CHAR	    deviceFileName[256];
    MP_UINT32	    busNumber;
    MP_UINT32	    portNumber;

} MP_PATH_LOGICAL_UNIT_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_INITIATOR_PORT_PROPERTIES structure.
 *
 * This structure is returned by the MP_GetInitiatorPortProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_INITIATOR_PORT_PROPERTIES
{
    MP_CHAR		    portID[256];
    MP_PORT_TRANSPORT_TYPE  portType;
    MP_CHAR		    osDeviceFile[256];
    MP_WCHAR		    osFriendlyName[256];

} MP_INITIATOR_PORT_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_TARGET_PORT_PROPERTIES structure.
 *
 * This structure is returned by the MP_GetTargetPortProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_TARGET_PORT_PROPERTIES
{
    MP_CHAR	portID[256];
    MP_UINT32	relativePortID;

} MP_TARGET_PORT_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_TARGET_PORT_GROUP_PROPERTIES structure.
 *
 * This structure is returned by the MP_GetTargetPortGroupProperties() API.
 *
 *******************************************************************************
 */
typedef struct _MP_TARGET_PORT_GROUP_PROPERTIES
{
    MP_ACCESS_STATE_TYPE    accessState;
    MP_BOOL                 explicitFailover;
    MP_BOOL                 supportsLuAssignment;
    MP_BOOL		    preferredLuPath;
    MP_UINT32		    tpgID;

} MP_TARGET_PORT_GROUP_PROPERTIES;

/**
 *******************************************************************************
 *
 * Declaration of the MP_TPG_STATE_PAIR structure.
 *
 * This structure is used as an argument for the MP_SetTPGAcess() API.
 *
 *******************************************************************************
 */
typedef struct _MP_TPG_STATE_PAIR
{
    MP_OID                  tpgOid;
    MP_ACCESS_STATE_TYPE    desiredState;

} MP_TPG_STATE_PAIR;

/**
 *******************************************************************************
 *
 * Declaration of call back function type for event support
 *
 *******************************************************************************
 */
typedef void (* MP_OBJECT_PROPERTY_FN) (
    MP_OID_LIST *pOidList, void *pCallerData
);

typedef void (* MP_OBJECT_VISIBILITY_FN) (
    MP_BOOL becomingVisible, MP_OID_LIST *pOidList, void *pCallerData
);

void InitLibrary();
void ExitLibrary();

/**
 ******************************************************************************
 *
 * The APIs for property and object related discovery.
 *
 * - MP_GetLibraryProperties
 * - MP_GetPluginOidList
 * - MP_GetPluginProperties
 * - MP_GetAssociatedPluginOid
 * - MP_GetObjectType
 * - MP_GetDeviceProductOidList
 * - MP_GetDeviceProductProperties
 * - MP_GetInitiatorPortOidList
 * - MP_GetInitiatorPortProperties
 * - MP_GetMultipathLus
 * - MP_GetMPLogicalUnitProperties
 * - MP_GetAssociatedPathOidList
 * - MP_GetPathLogicalUnitProperties
 * - MP_GetAssociatedTPGOidList
 * - MP_GetTargetPortGroupProperties
 * - MP_GetMPLuOidListFromTPG
 * - MP_GetProprietaryLoadBalanceOidList
 * - MP_GetProprietaryLoadBalanceProperties
 * - MP_GetTargetPortOidList
 * - MP_GetTargetPortProperties
 *
 ******************************************************************************
 */

/**
 *******************************************************************************
 *
 * Gets the properties of the MP API library that is being used.
 *
 * @param  pProps
 *         A pointer to an MP_LIBRARY_PROPERTIES structure allocated by
 *         the caller.  On successful return this structure will contain the
 *         properties of the MP API library.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *          Returned if the library properties were successfully returned.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding the
 *      library properties is found to be invalid.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API.
 *
 ******************************************************************************
 */
MP_STATUS MP_GetLibraryProperties(
        MP_LIBRARY_PROPERTIES *pProps
);

/**
 ******************************************************************************
 *
 * Gets a list of the object IDs of all currently loaded plugins.
 *
 * @param ppList
 *        A pointer to a pointer to an MP_OID_LIST.  On successful
 *        return this will contain a pointer to an @ref MP_OID_LIST
 *        which contains the object IDs of all of the plugins currently
 *        loaded by the library.
 *
 * @return MP_STATUS indicating if the operation was successful or
 *          if an error occurred.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *      Returned if oid does not specify any valid object type. This is
 *      most likely to happen if an uninitialized object ID is passed to
 *      the API.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList is NULL or specifies a memory area to which data
 *      cannot be written. MP_STATUS_SUCCESS Returned when the operation is
 *      successful.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs*
 *
 * @retval MP_STATUS_SUCCESS
 *          Returned if the plugin ID list was successfully returned.
 *
 ******************************************************************************
 */
MP_STATUS MP_GetPluginOidList(
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified vendor plugin.
 *
 * @param  oid
 *         The ID of the plugin whose properties are being retrieved.
 *
 * @param  pProps
 *         A pointer to an @ref MP_PLUGIN_PROPERTIES structure allocated by
 *         the caller.  On successful return this will contain the properties
 *         of the plugin specified by pluginOid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if an
 *         error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned if the plugin properties were successfully returned.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *         Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *         Returned if oid has an owner that is not currently known to
 *     the system.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *         Returned if 'pProps' is NULL or specifies a memory area to
 *         which data cannot be written.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetPluginProperties(
        MP_OID                oid,
        MP_PLUGIN_PROPERTIES *pProps
);


/**
 *******************************************************************************
 *
 * Gets the object ID for the plugin associated with the specified object ID.
 *
 * @param  oid
 *         The object ID of an object that has been received from a previous
 *         library call.
 *
 * @param  pPluginOid
 *         A pointer to an MP_OID structure allocated by the caller.  On
 *         successful return this will contain the object ID of the plugin
 *         associated with the object specified by @a objectId.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *          Returned if the associated plugin ID was successfully returned.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid does not specify a plugin that is currently known to
 *     the system.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *          Returned if 'oid' specifies an object not owned by a plugin or
 *     	    if pPluginOid is NULL or specifies a memory area to which data
 *          cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if 'oid' specifies an object with an invalid type.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetAssociatedPluginOid(
        MP_OID  oid,
        MP_OID *pPluginOid
);


/**
 *******************************************************************************
 *
 * Gets the object type of an initialized object ID.
 *
 * @param  oid
 *         The object ID of an object that has been received from a previous
 *         library call.
 *
 * @param  pObjectType
 *         A pointer to an MP_OBJECT_TYPE variable allocated by the caller.
 *         On successful return this will contain the object type of oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or
 *         if an error occurred.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned if oid has an owner that is not currently known to
 *      the system.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetObjectType(
        MP_OID          oid,
        MP_OBJECT_TYPE *pObjectType
);


/**
 *******************************************************************************
 *
 * Gets a list of the object IDs of all the device product properties
 *       associated with this plugin.
 *
 * @param  oid
 *         The object ID of plugin.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the device
 *      product descriptors associated with the specified plugin.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the device product list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *         Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *         Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the API is not supported.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetDeviceProductOidList(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the device product properties of the specified plugin oid.
 *
 * @param  oid
 *         The object ID of the plugin.
 *
 * @param  ppProps
 *      A pointer to an MP_DEVICE_PRODUCT_PROPERTIES structure
 *      allocated by the caller. On successful return it will contain
 *      a pointer to an MP_DEVICE_PRODUCT_PROPERTIES structure allocated
 *      by the library.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppProps pointer passed as placeholder for holding
 *      the device product properties is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *         Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *         Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the API is not supported.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetDeviceProductProperties(
        MP_OID                         oid,
        MP_DEVICE_PRODUCT_PROPERTIES *pProps
);

/**
 *******************************************************************************
 *
 * Gets a list of the object IDs of all the initiator ports associated
 * with this plugin.
 *
 * @param  oid
 *         The object ID of plugin.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the initiator
 *      ports associated with the specified plugin.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the initiator port list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the API is not supported.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetInitiatorPortOidList(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified initiator port.
 *
 * @param  oid
 *         The object ID of the initiator port.
 *
 * @param  pProps
 *      A pointer to an MP_INITIATOR_PORT_PROPERTIES structure
 *      allocated by the caller. On successful return, this structure
 *      will contain the properties of the port specified by oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pProps is NULL or specifies a memory area to
 *      which data cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetInitiatorPortProperties(
        MP_OID                        oid,
        MP_INITIATOR_PORT_PROPERTIES *pProps
);

/**
 *******************************************************************************
 *
 * Gets a list of multipath logical units associated to a plugin.
 *
 * @param  oid
 *         The object ID of plugin.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the multipath
 *      logical units associated with the specified plugin.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the multipath logical unit list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the API is not supported.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetMultipathLus(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified logical unit.
 *
 * @param  oid
 *         The object ID of the multipath logical unit.
 *
 * @param  pProps
 *      A pointer to an MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES structure
 *      allocated by the caller. On successful return, this structure
 *      will contain the properties of the port specified by oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pProps is NULL or specifies a memory area to
 *      which data cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetMPLogicalUnitProperties(
        MP_OID                                oid,
        MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES *pProps
);

/**
 *******************************************************************************
 *
 * Gets a list of the object IDs of all the path logical units associated
 * with the specified multipath logical unit, initiator port, or target port.
 *
 * @param  oid
 *         The object ID of multipath logical unit, initiator port, or
 *     target port.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the mp path
 *      logical units associated with the specified OID.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the device product list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetAssociatedPathOidList(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified path logical unit.
 *
 * @param  oid
 *         The object ID of the path logical unit.
 *
 * @param  pProps
 *      A pointer to an MP_PATH_LOGICAL_UNIT_PROPERTIES structure
 *      allocated by the caller. On successful return, this structure
 *      will contain the properties of the port specified by oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pProps is NULL or specifies a memory area to
 *      which data cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetPathLogicalUnitProperties(
        MP_OID                           oid,
        MP_PATH_LOGICAL_UNIT_PROPERTIES *pProps
);

/**
 *******************************************************************************
 *
 * Gets a list of the object IDs of all the target port group associated
 * with the specified multipath logical unit.
 *
 * @param  oid
 *         The object ID of the multiple logical unit.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the target
 *      port group associated with the specified multipath logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the target port group list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 *
 *******************************************************************************
 */
MP_STATUS MP_GetAssociatedTPGOidList(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified target port group.
 *
 * @param  oid
 *         The object ID of the target port group.
 *
 * @param  pProps
 *      A pointer to an MP_TARGET_PORT_GROUP_PROPERTIES structure
 *      allocated by the caller. On successful return, this structure
 *      will contain the properties of the port specified by oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pProps is NULL or specifies a memory area to
 *      which data cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetTargetPortGroupProperties(
        MP_OID                           oid,
        MP_TARGET_PORT_GROUP_PROPERTIES *pProps
);

/**
 *******************************************************************************
 *
 * Gets a list of multipath logical units associated with the specific target
 *  port group.
 *
 * @param  oid
 *         The object ID of the target port group.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the multipath
 *      logical units associated with the specified target port group.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the multipath logical unit list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 *******************************************************************************
 */
MP_STATUS MP_GetMPLuOidListFromTPG(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets a list of the object IDs of all the proprietary load balance
 * algorithms associated with this plugin.
 *
 * @param  oid
 *         The object ID of the plugin.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the proprietary
 *      load balance algorithms associated with the specified plugin.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the proprietary load balance oid list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the API is not supported.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetProprietaryLoadBalanceOidList(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified load balance properties structure.
 *
 * @param  oid
 *         The object ID of the proprietary load balance structure.
 *
 * @param  pProps
 *      A pointer to an MP_PROPRIETARY_LOAD_BALANCE_PROPERTIES structure
 *      allocated by the caller. On successful return, this structure
 *      will contain the properties of the port specified by oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pProps is NULL or specifies a memory area to
 *      which data cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *      Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetProprietaryLoadBalanceProperties(
        MP_OID                     oid,
        MP_PROPRIETARY_LOAD_BALANCE_PROPERTIES *pProps
);

/**
 *******************************************************************************
 *
 * Gets a list of the object IDs of the target ports in the specified target
 * port group.
 *
 * @param  oid
 *         The object ID of the target port group.
 *
 * @param  ppList
 *      A pointer to a pointer to an MP_OID_LIST structure.
 *      On a successful return, this will contain a pointer to
 *      an MP_OID_LIST that contains the object IDs of all the target ports
 *      associated with the specified target port group.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if ppList pointer passed as placeholder for holding
 *      the multipath logical unit list is found to be invalid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the plugin for the specified oid is not found.
 *
 * @retval MP_STATUS_INSUFFICIENT_MEMORY
 *      Returned when memory allocation failure occurs
 *
 *******************************************************************************
 */
MP_STATUS MP_GetTargetPortOidList(
        MP_OID        oid,
        MP_OID_LIST **ppList
);

/**
 *******************************************************************************
 *
 * Gets the properties of the specified target port.
 *
 * @param  oid
 *         The object ID of the target port.
 *
 * @param  pProps
 *      A pointer to an MP_TARGET_PORT_PROPERTIES structure
 *      allocated by the caller. On successful return, this structure
 *      will contain the properties of the port specified by oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pProps is NULL or specifies a memory area to
 *      which data cannot be written.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_GetTargetPortProperties(
        MP_OID                     oid,
        MP_TARGET_PORT_PROPERTIES *pProps
);

/**
 ******************************************************************************
 *
 * The APIs for path management.
 *
 * - MP_AssignLogicalUnitToTPG
 * - MP_SetOverridePath
 * - MP_CancelOverridePath
 * - MP_EnableAutoFailback
 * - MP_DisableAutoFailback
 * - MP_EnableAutoProbing
 * - MP_DisableAutoProbing
 * - MP_EnablePath
 * - MP_DisablePath
 * - MP_SetLogicalUnitLoadBalanceType
 * - MP_SetPluginLoadBalanceType
 * - MP_SetPathWeight
 * - MP_SetFailbackPollingRates
 * - MP_SetProbingPollingRates
 * - MP_SetProprietaryProperties
 * - MP_SetTPGAccess
 *
 ******************************************************************************
 */

/**
 *******************************************************************************
 *
 * Assign a multipath logical unit to a target port group.
 *
 * @param  tpgOid
 *      An MP_TARGET_PORT_GROUP oid. The target port group currently in
 *      active access state that the administrator would like the LU
 *      assigned to.
 *
 * @param  luOid
 *      An MP_MULTIPATH_LOGICAL_UNIT oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned when luOid is not associated with tpgOid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_AssignLogicalUnitToTPG(
        MP_OID tpgOid,
        MP_OID luOid
);

/**
 *******************************************************************************
 *
 * Manually override the path for a logical unit. The path exclusively used to
 * access the logical unit until cleared.
 *
 * @param  logicalUnitOid
 *      The object ID of the multipath logical unit.
 *
 * @param  pathOid
 *      The object ID of the path logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if the oid of the object is not valid
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_PATH_NONOPERATIONAL
 *          Returned when the driver cannot communicate through selected path.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetOverridePath(
    MP_OID logicalUnitOid,
    MP_OID pathOid
);

/**
 *******************************************************************************
 *
 * Cancel a path override and re-enable load balancing.
 *
 * @param  luOid
 *         An MP_MULTIPATH_LOGICAL_UNIT oid.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if MP_MULTIPATH_LOGICAL_UNIT with the luOid is not found.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *          Returned if oid has an owner that is not currently known to
 *      the system.
 *
 *******************************************************************************
 */
MP_STATUS MP_CancelOverridePath(
        MP_OID logicalUnitOid
);

/**
 *******************************************************************************
 *
 * Enables Auto-failback.
 *
 * @param  oid
 *      The oid of the plugin or the multipath logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid is NULL or specifies a memory area that is not
 *      a valid plugin oid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_EnableAutoFailback(
    MP_OID oid
);

/**
 *******************************************************************************
 *
 * Disables Auto-failback.
 *
 * @param  oid
 *      The oid of the plugin or the multipath logical unit..
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid is NULL or specifies a memory area that is not
 *      a valid plugin oid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_DisableAutoFailback(
    MP_OID oid
);

/**
 *******************************************************************************
 *
 * Enables Auto-probing.
 *
 * @param  oid
 *      The oid of the plugin or the multipath logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid is NULL or specifies a memory area that is not
 *      a valid plugin oid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_EnableAutoProbing(
    MP_OID oid
);

/**
 *******************************************************************************
 *
 * Disables Auto-probing.
 *
 * @param  oid
 *      The oid of the plugin or the multipath logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid is NULL or specifies a memory area that is not
 *      a valid plugin oid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_DisableAutoProbing(
    MP_OID oid
);

/**
 *******************************************************************************
 *
 * Enables a path. This API may cause failover in a logical unit with
 * asymmetric access.
 *
 * @param  oid
 *      The oid of the path.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid is NULL or specifies a memory area that is not
 *      a valid path oid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_EnablePath(
    MP_OID oid
);

/**
 *******************************************************************************
 *
 * Disables a path. This API may cause failover in a logical unit with
 * asymmetric access. This API may cause a logical unit to become unavailable.
 *
 * @param  oid
 *      The oid of the path.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if oid is NULL or specifies a memory area that is not
 *      a valid path oid.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *          Returned when the API is not supported.
 *
 * @retval MP_STATUS_TRY_AGAIN
 *          Returned when path cannot be disabled at this time.
 *
 * @retval MP_STATUS_NOT_PERMITTED
 *          Returned when disabling thsi path would cause the login unit to
 * 	    become unavailable.
 *
 *******************************************************************************
 */
MP_STATUS MP_DisablePath(
    MP_OID oid
);

/**
 *******************************************************************************
 *
 * Set the multipath logical unit s load balancing policy.
 *
 * @param  logicalUnitoid
 *      The object ID of the multipath logical unit.
 *
 * @param  loadBanlance
 *      The desired load balance policy for the specified logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if no MP_MULTIPATH_LOGICAL_UNIT associated with
 *      @ref ligicalUnitrOid is found or invalid MP_LOAD_BALANCE_TYPE is
 *      specified.
 *
 * @retval MP_STATUS_FAILED
 *      Returned when the specified loadBalance type cannot be handled
 *      by the plugin.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetLogicalUnitLoadBalanceType(
    MP_OID               logicalUnitOid,
    MP_LOAD_BALANCE_TYPE loadBalance
);

/**
 *******************************************************************************
 *
 * Set the weight to be assigned to a particular path.
 *
 * @param  pathOid
 *      The object ID of the path logical unit.
 *
 * @param  weight
 *      weight that will be assigned to the path logical unit.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned when the MP Path specified by the PathOid could not be
 *      found.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the operation failed.
 *
 * @retval MP_STATUS_INVALID_WEIGHT
 *          Returned when the weight parameter is greater than the plugin's
 *      maxWeight property.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetPathWeight(
    MP_OID    pathOid,
    MP_UINT32 weight
);

/**
 *******************************************************************************
 *
 * Set the default load balance policy for the plugin.
 *
 * @param  oid
 *      The object ID of the plugin
 *
 * @param  loadBalance
 *      The desired default load balance policy for the specified plugin.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned when the the plugin specified by @ref oid could not be
 *      found.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if the oid of the object is not valid.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned when the specified loadBalance type cannot be handled
 *      by the plugin.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetPluginLoadBalanceType(
    MP_OID               oid,
    MP_LOAD_BALANCE_TYPE loadBalance
);

/**
 *******************************************************************************
 *
 * Set the failback polling rates. Setting both rates to zero disables polling.
 *
 * @param  pluginOid
 *      The object ID of either the plugin or a multipath logical unit.
 *
 * @param  pollingRate
 *      The value to be set in MP_PLUGIN_PROPERTIES current pollingRate or
 *	MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES pollingRate.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned when the the plugin specified by @ref oid could not be
 *      found.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if one of the polling values is outside the range
 *      supported by the driver.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetFailbackPollingRate(
    MP_OID    oid,
    MP_UINT32 pollingRate
);

/**
 *******************************************************************************
 *
 * Set the probing polling rates. Setting both rates to zero disables polling.
 *
 * @param  pluginOid
 *      The object ID of either the plugin or a multipath logical unit.
 *
 * @param  pollingRate
 *      The value to be set in MP_PLUGIN_PROPERTIES current pollingRate or
 *	MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES pollingRate.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned when the the plugin specified by @ref oid could not be
 *      found.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if one of the polling values is outside the range
 *      supported by the driver.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetProbingPollingRate(
    MP_OID    oid,
    MP_UINT32 pollingRate
);

/**
 *******************************************************************************
 *
 * Set proprietary properties in supported object instances.
 *
 * @param  pluginOid
 *      The object ID of MP_PROPRIETARY_LOAD_BALANCE_PROPERTIES,
 *	MP_PLUGIN_PROPERTIES or MP_MULTIPATH_LOGICAL_UNIT_PROPERTIES.
 *
 * @param  count
 *	   The number of valid items in pPropertyList.
 *
 * @param  pPropertyList
 *	   A pointer to an array of property name/value pairs. This array must
 *	   contain the same number of elements as count.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned when the the plugin specified by @ref oid could not be
 *      found.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if one of the polling values is outside the range
 *      supported by the driver.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_SetProprietaryProperties(
    MP_OID    oid,
    MP_UINT32 count,
    MP_PROPRIETARY_PROPERTY *pPropertyList
);

/**
 *******************************************************************************
 *
 * Set the access state for a list of target port groups. This allows
 * a client to force a failover or failback to a desired set of target port
 * groups.
 *
 * @param  luOid
 *      The object ID of the logical unit where the command is sent.
 *
 * @param  count
 *      The number of valid items in the pTpgStateList.
 *
 * @param  pTpgStateList
 *      A pointer to an array of TPG/access-state values. This array must
 *      contain the same number of elements as @ref count.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_OBJECT_NOT_FOUND
 *      Returned when the MP_MULTIPATH_LOGICAL_UNIT associated with @ref
 *      oid could not be found.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pTpgStateList is null or if one of the TPGs referenced
 *      in the list is not associated with the specified MP logical unit.
 *
 * @retval MP_STATUS_UNSUPPORTED
 *      Returned when the implementation does not support the API
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if oid does not specify any valid object type.
 *
 * @retval MP_STATUS_ACCESS_STATE_INVALID
 *         Returned if the target device returns a status indicating the caller
 *     is attempting to establish an illegal combination of access states.
 *
 * @retval MP_STATUS_FAILED
 *          Returned if the underlying interface failed the commend for some
 *      reason other than MP_STATUS_ACCESS_STATE_INVALID
 *
 *******************************************************************************
 */
MP_STATUS MP_SetTPGAccess(
    MP_OID             luOid,
    MP_UINT32          count,
    MP_TPG_STATE_PAIR *pTpgStateList
);

/**
 ******************************************************************************
 *
 * The APIs that are associated with event support.
 *
 * - MP_RegisterForObjectPropertyChanges
 * - MP_DeregisterForObjectPropertyChanges
 * - MP_RegisterForObjectVisibilityChanges
 * - MP_DeregisterForObjectVisibilityChanges
 *
 ******************************************************************************
 */

/**
 *******************************************************************************
 *
 * Registers a client function that is to be called
 * whenever the property of an an object changes.
 *
 * @param  pClientFn,
 *      A pointer to an MP_OBJECT_PROPERTY_FN function defined by the
 *      client. On successful return this function will be called to
 *      inform the client of objects that have had one or more properties
 *      change.
 *
 * @param  objectType
 *      The type of object the client wishes to deregister for
 *      property change callbacks. If null, then all objects types are
 *      deregistered.
 *
 * @param  pCallerData
 *      A pointer that is passed to the callback routine with each event.
 *      This may be used by the caller to correlate the event to source of
 *      the registration.
 *
 * @param  pluginOid
 *      A plugin oid that the client wishes to deregister for property change.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pClientFn is NULL or specifies a memory area
 *      that is not executable.
 *
 * @retval MP_STATUS_FN_REPLACED
 *      Returned when an existing client function is replaced with the one
 *      specified in pClientFn.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if objectType does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_RegisterForObjectPropertyChanges(
    MP_OBJECT_PROPERTY_FN   pClientFn,
    MP_OBJECT_TYPE	    objectType,
    void		    *pCallerData,
    MP_OID		    pluginOid
);

/**
 *******************************************************************************
 *
 * Deregisters a previously registered client function that is to be invoked
 * whenever an object's property changes.
 *
 * @param  pClientFn,
 *      A pointer to an MP_OBJECT_PROPERTY_FN function defined by the
 *      client that was previously registered using
 *      the MP_RegisterForObjectPropertyChanges API. On successful return
 *      this function will no longer be called to inform the client of
 *      object property changes.
 *
 * @param  objectType
 *      The type of object the client wishes to deregister for
 *      property change callbacks. If null, then all objects types are
 *      deregistered.
 *
 * @param  pluginOid
 *      A plugin oid that the client wishes to deregister for property change.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pClientFn is NULL or specifies a memory area
 *      that is not executable.
 *
 * @retval MP_STATUS_UNKNOWN_FN
 *      Returned if pClientFn is not the same as the previously registered
 *      function.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if objectType does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned if pClientFn deregistration is not possible at this time.
 *
 *******************************************************************************
 */
MP_STATUS MP_DeregisterForObjectPropertyChanges(
    MP_OBJECT_PROPERTY_FN   pClientFn,
    MP_OBJECT_TYPE	    objectType,
    MP_OID		    pluginOid
);

/**
 *******************************************************************************
 *
 * Registers a client function that is to be called
 * whenever a high level object appears or disappears.
 *
 * @param  pClientFn,
 *      A pointer to an MP_OBJECT_VISIBILITY_FN function defined by the
 *      client. On successful return this function will be called to
 *      inform the client of objects whose visibility has changed.
 *
 * @param  objectType
 *      The type of object the client wishes to deregister for
 *      property change callbacks. If null, then all objects types are
 *      deregistered.
 *
 * @param  pCallerData
 *      A pointer that is passed to the callback routine with each event.
 *      This may be used by the caller to correlate the event to source of
 *      the registration.
 *
 * @param  pluginOid
 *      A plugin oid that the client wishes to deregister for property change.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pClientFn is NULL or specifies a memory area
 *      that is not executable.
 *
 * @retval MP_STATUS_FN_REPLACED
 *      Returned when an existing client function is replaced with the one
 *      specified in pClientFn.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if objectType does not specify any valid object type.
 *
 *******************************************************************************
 */
MP_STATUS MP_RegisterForObjectVisibilityChanges(
    MP_OBJECT_VISIBILITY_FN pClientFn,
    MP_OBJECT_TYPE	    objectType,
    void		    *pCallerData,
    MP_OID		    pluginOid
);

/**
 *******************************************************************************
 *
 * Deregisters a previously registered client function that is to be invoked
 * whenever a high level object appears or disappears.
 *
 * @param  pClientFn,
 *      A pointer to an MP_OBJECT_VISIBILITY_FN function defined by the
 *      client that was previously registered using
 *      the MP_RegisterForObjectVisibilityChanges API. On successful return
 *      this function will no longer be called to inform the client of
 *      object property changes.
 *
 * @param  objectType
 *      The type of object the client wishes to deregister for visibility
 *      change callbacks. If null, then all objects types are
 *      deregistered.
 *
 * @param  pluginOid
 *      A plugin oid that the client wishes to deregister for property change.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the operation is successful.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pClientFn is NULL or specifies a memory area
 *      that is not executable.
 *
 * @retval MP_STATUS_UNKNOWN_FN
 *      Returned if pClientFn is not the same as the previously registered
 *      function.
 *
 * @retval MP_STATUS_INVALID_OBJECT_TYPE
 *          Returned if objectType does not specify any valid object type.
 *
 * @retval MP_STATUS_FAILED
 *          Returned if pClientFn deregistration is not possible at this time.
 *
 *******************************************************************************
 */
MP_STATUS MP_DeregisterForObjectVisibilityChanges(
    MP_OBJECT_VISIBILITY_FN pClientFn,
    MP_OBJECT_TYPE          objectType,
    MP_OID		    pluginOid
);

/**
 ******************************************************************************
 *
 * The utility APIs
 *
 * - MP_CompareOIDs
 * - MP_FreeOidList
 * - MP_RegisterPlugin
 * - MP_DeregisterPlugin
 *
 ******************************************************************************
 */

/**
 *******************************************************************************
 *
 * Compare two Oids for equality to see whether they refer to the same object.
 *
 * @param  oid1
 *          Oid to compare.
 *
 * @param  oid2
 *          Oid to compare.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when the two Oids do refer to the same object.
 *
 * @retval MP_STATUS_FAILED
 *      Returned if the Oids don't compare.
 *
 *******************************************************************************
 */
MP_STATUS MP_CompareOIDs(
    MP_OID oid1,
    MP_OID oid2
);

/**
 *******************************************************************************
 *
 * Frees memory returned by an MP API.
 *
 * @param  pMemory
 *      A pointer to the memory returned by an MP API. On successful
        return, the allocated memory is freed.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when pPluginId is deregistered successfully.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pMemory is NULL or specifies a memory area to which
 *      data cannot be written.
 *
 *******************************************************************************
 */
MP_STATUS MP_FreeOidList(
    MP_OID_LIST *pOidList
);

/**
 *******************************************************************************
 *
 * Registers a plugin with common library.  The implementation of this routine
 * is based on configuration file /etc/mpapi.conf that contains a list of
 * plugin libraries.
 *
 * @param  pPluginId
 *      A pointer to the key name shall be the reversed domain name of
 *      the vendor followed by followed by the vendor specific name for
 *      the plugin that uniquely identifies the plugin.
 *
 * @param  pFileName
 *      The full path to the plugin library.
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when pPluginId is deregistered successfully.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pPluginId is NULL or specifies a memory area that
 *      is not executable.
 *
 * @retval MP_STATUS_FAILED
 *          Returned if pClientFn deregistration is not possible at this time.
 *
 *******************************************************************************
 */
MP_STATUS MP_RegisterPlugin(
    MP_WCHAR *pPluginId,
    MP_CHAR *pFileName
);

/**
 *******************************************************************************
 *
 * Deregisters a plugin from the common library.
 *
 * @param  pPluginId
 *      A pointer to a Plugin ID previously registered using
 *      the MP_RegisterPlugin API..
 *
 * @return An MP_STATUS indicating if the operation was successful or if
 *         an error occurred.
 *
 * @retval MP_STATUS_SUCCESS
 *         Returned when pPluginId is deregistered successfully.
 *
 * @retval MP_STATUS_INVALID_PARAMETER
 *      Returned if pPluginId is NULL or specifies a memory area that
 *      is not executable.
 *
 * @retval MP_STATUS_FAILED
 *          Returned if pClientFn deregistration is not possible at this time.
 *
 *******************************************************************************
 */
MP_STATUS MP_DeregisterPlugin(
    MP_WCHAR *pPluginId
);

#endif

#ifdef __cplusplus
};
#endif