Changeset 2603350 in nscp for NSClient++.cpp
- Timestamp:
- 02/23/07 19:25:23 (6 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 2c34b97
- Parents:
- d48c31a
- File:
-
- 1 edited
-
NSClient++.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
NSClient++.cpp
r1a22e52 r2603350 380 380 switch (c) { 381 381 case NSCAPI::returnInvalidBufferLen: 382 LOG_ERROR(" Return buffer to small to handle this command.");382 LOG_ERROR("UNKNOWN: Return buffer to small to handle this command."); 383 383 return c; 384 384 case NSCAPI::returnIgnored: … … 521 521 return NSCAPI::isSuccess; 522 522 } 523 NSCAPI::errorReturn NSAPIReleaseSettingsSectionBuffer(char*** aBuffer, unsigned int * bufLen) { 524 arrayBuffer::destroyArrayBuffer(*aBuffer, *bufLen); 525 *bufLen = 0; 526 *aBuffer = NULL; 527 return NSCAPI::isSuccess; 528 } 523 529 524 530 NSCAPI::boolReturn NSAPICheckLogMessages(int messageType) { … … 651 657 652 658 LPVOID NSAPILoader(char*buffer) { 653 if ( stricmp(buffer, "NSAPIGetApplicationName") == 0)659 if (_stricmp(buffer, "NSAPIGetApplicationName") == 0) 654 660 return &NSAPIGetApplicationName; 655 if ( stricmp(buffer, "NSAPIGetApplicationVersionStr") == 0)661 if (_stricmp(buffer, "NSAPIGetApplicationVersionStr") == 0) 656 662 return &NSAPIGetApplicationVersionStr; 657 if (stricmp(buffer, "NSAPIGetSettingsSection") == 0) 663 if (_stricmp(buffer, "NSAPIGetSettingsString") == 0) 664 return &NSAPIGetSettingsString; 665 if (_stricmp(buffer, "NSAPIGetSettingsSection") == 0) 658 666 return &NSAPIGetSettingsSection; 659 if ( stricmp(buffer, "NSAPIGetSettingsString") == 0)660 return &NSAPI GetSettingsString;661 if ( stricmp(buffer, "NSAPIGetSettingsInt") == 0)667 if (_stricmp(buffer, "NSAPIReleaseSettingsSectionBuffer") == 0) 668 return &NSAPIReleaseSettingsSectionBuffer; 669 if (_stricmp(buffer, "NSAPIGetSettingsInt") == 0) 662 670 return &NSAPIGetSettingsInt; 663 if ( stricmp(buffer, "NSAPIMessage") == 0)671 if (_stricmp(buffer, "NSAPIMessage") == 0) 664 672 return &NSAPIMessage; 665 if ( stricmp(buffer, "NSAPIStopServer") == 0)673 if (_stricmp(buffer, "NSAPIStopServer") == 0) 666 674 return &NSAPIStopServer; 667 if ( stricmp(buffer, "NSAPIInject") == 0)675 if (_stricmp(buffer, "NSAPIInject") == 0) 668 676 return &NSAPIInject; 669 if ( stricmp(buffer, "NSAPIGetBasePath") == 0)677 if (_stricmp(buffer, "NSAPIGetBasePath") == 0) 670 678 return &NSAPIGetBasePath; 671 if ( stricmp(buffer, "NSAPICheckLogMessages") == 0)679 if (_stricmp(buffer, "NSAPICheckLogMessages") == 0) 672 680 return &NSAPICheckLogMessages; 673 if ( stricmp(buffer, "NSAPIEncrypt") == 0)681 if (_stricmp(buffer, "NSAPIEncrypt") == 0) 674 682 return &NSAPIEncrypt; 675 if ( stricmp(buffer, "NSAPIDecrypt") == 0)683 if (_stricmp(buffer, "NSAPIDecrypt") == 0) 676 684 return &NSAPIDecrypt; 677 if ( stricmp(buffer, "NSAPISetSettingsString") == 0)685 if (_stricmp(buffer, "NSAPISetSettingsString") == 0) 678 686 return &NSAPISetSettingsString; 679 if ( stricmp(buffer, "NSAPISetSettingsInt") == 0)687 if (_stricmp(buffer, "NSAPISetSettingsInt") == 0) 680 688 return &NSAPISetSettingsInt; 681 if ( stricmp(buffer, "NSAPIWriteSettings") == 0)689 if (_stricmp(buffer, "NSAPIWriteSettings") == 0) 682 690 return &NSAPIWriteSettings; 683 if ( stricmp(buffer, "NSAPIReadSettings") == 0)691 if (_stricmp(buffer, "NSAPIReadSettings") == 0) 684 692 return &NSAPIReadSettings; 685 if ( stricmp(buffer, "NSAPIRehash") == 0)693 if (_stricmp(buffer, "NSAPIRehash") == 0) 686 694 return &NSAPIRehash; 687 695 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.








