The Source Control Integration API optional functions
133
bool SCS_GetErrorMessage()
Description
This function returns the last error message. If you implement
getErrorMessage()
,
Dreamweaver calls it each time one of your API functions returns the value
false
.
If a routine returns
-1
or
false
, it indicates an error message should be available.
Arguments
void *connectionData
,
char
errorMsg[]
,
const int *msgLength
The
connectionData
argument is a pointer to the agent’s data that passed into Dreamweaver
during the
Connect()
call.
■
The
errorMsg
argument is a preallocated string for the DLL to fill in with the error
message.
■
The
msgLength
argument is the length of the buffer represented by the
errorMsg[]
argument.
Returns
A Boolean value:
true
if successful;
false
otherwise.
int SCS_GetNoteCount()
Description
This function returns the number of Design Note keys for the specified remote file or folder
path. If unsupported by the source control system, Dreamweaver gets this information from
the companion MNO file.
Arguments
void *connectionData
,
const char *remotePath
■
The
connectionData
argument is a pointer to the agent’s data that passed into
Dreamweaver during the
Connect()
call.
■
The
remotePath
argument is the remote file or folder path that the DLL checks for the
number of attached Design Notes.
Returns
An integer that indicates the number of Design Notes that are associated with this file. If the
function returns
< 0
, Dreamweaver considers it an error and tries to retrieve the error message
from the DLL, if supported.
000_DW_API_Print.book Page 133 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...