SQUID Functions

 

  • The SQUID functions, and their examples, assume that the SQUID server has been started with an address of http://localhost:8000.
  • Validation of the function calls can be handled by checking the return value and calling SquidGetLastError().

 

Entries in SquidImportData (1)

Sunday
Feb192012

SquidImportData

  • Import data into SQUID.
  • The first row of the file will contain the parameter name.
  • If the UI is being used, click the '...' to display the file open dialog.

Prototype

int SquidImportData(int iSquid, char* sFilePath);

  • Parameters
iSquidSquid Connection Handle
sFilePathPath of data file to import
  • Return Values
0Operation successful
-1Error occurred, call SquidGetLastError for details

Example

int iSquid;
lr_load_dll("SQUID-REST.dll");
iSquid = SquidConnect("http://localhost:8000");
SquidImportData(iSquid, "c:\\users_to_import.dat");
SquidDisconnect(iSquid);

Import File

users
user001
user002
user003
user004