120
Chapter 10: The Source Control Integration API
int SCS_GetRootFolderLength()
Description
This function returns the length of the name of the root folder.
Arguments
void *connectionData
•
The
connectionData
argument is a pointer to the agent’s data that passed into Dreamweaver
during the
Connect()
call.
Returns
An integer that indicates the length of the name of the root folder. If the function returns
< 0
,
Dreamweaver considers it an error and tries to retrieve the error message from the DLL,
if supported.
bool SCS_GetRootFolder()
Description
This function returns the name of the root folder.
Arguments
void *connectionData
,
char
remotePath[]
,
const int folderLen
•
The
connectionData
argument is a pointer to the agent’s data that passed into Dreamweaver
during the
Connect()
call.
•
The
remotePath
is a buffer where the full remote path of the root folder is stored.
•
The
folderLen
argument is an integer that indicates the length of
remotePath
. This is the
value that
GetRootFolderLength
returns.
Returns
A Boolean value:
true
if successful;
false
otherwise.
int SCS_GetFolderListLength()
Description
This function returns the number of items in the passed-in folder.
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 full path and name of the remote folder that the DLL checks
for the number of items.
Returns
An integer that indicates the number of items in the current folder. 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 120 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...