Commit Graph

60 Commits

Author SHA1 Message Date
a.visegradi 8a9acb5957 Added support for the <optional> flag of boinc.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2574 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:02 +01:00
atisu 6c10ad3a94 - prepare for new release (...)
- add support for sticky files on clients



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2530 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:02 +01:00
atisu fb918d73e0 - revert to r2524 and new release: 0.12-1 broke handling of remote files
when invoked from previously compiled binaries/ libraries.



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2527 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:01 +01:00
atisu 2910b42687 - introduced persistent on clients option for
input files: DC_FILE_PERSISTENT_CLIENT 
   (not documented/ unofficial)
 - added static prefix for replace_regex() (it should not be exposed)



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2525 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:01 +01:00
smith 3c1832c9f9 Fix typo and add the function to the header.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2457 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:00 +01:00
zfarkas 44e9fbf44c Use size_t instead of int for remote file size.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2407 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:59 +01:00
zfarkas 2cb497ec58 Remove DC_addWURemoteInput and DC_addWUInputAdvanced, merge into va_arg'ized
DC_addWUInput.


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2406 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:59 +01:00
zfarkas 1397ae1a2b Added support for "remote" files at least in BOINC.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2385 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:59 +01:00
smith 39e5415019 Adding new public function DC_addWUInputAdvanced to support the definition of physical file name and its hash.
Implemented only for boinc. Other backends drop error.



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2321 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:58 +01:00
smith 0d143bf7c7 Modifying md5 has file creation for DC_addWUInput():
Hash file is created directly in the boinc download directory instead of the DC-API workunit working directory.


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2316 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:58 +01:00
smith 0d28e98f9f DC_addWUInput function is modified to receive externally generated hash for the input file. This hash is received and stored under boinc in a file with the same name and extension ".md5".
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2315 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:58 +01:00
gombasg f2830d1ba3 Make internal symbols hidden
We now have to start to care about ABI compatibility now that shared
libraries are being used. So ensure that internal symbols are not
visible outside of the library.

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2243 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:57 +01:00
gombasg dc63accd89 Add separate functions for setting the master callbacks
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1360 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:53 +01:00
gombasg b2b28af755 Move the definition of DC_PhysicalFile to dc_common.h so dc_internal.h can be
included on the client side too


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1033 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
gombasg 49c37a4f42 Introduce DC_getResultCPUTime() and add the BOINC implementation
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1002 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:49 +01:00
gombasg a217123510 Add support for setting the WU priority in dc-api.conf
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@970 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:47 +01:00
gombasg b32ab8bdd6 New common function to initialize config. files sent to the clients
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@817 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:40 +01:00
gombasg 28f7baff68 Ignore dc_win32.h when building the documentation
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@725 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:36 +01:00
gombasg 17caaa9d3e No strcasecmp() on Windows
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@722 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:36 +01:00
gombasg ff1a5e91f3 Add definition for ssize_t
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@719 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:35 +01:00
gombasg f03235cf3f Definition of __attribute__ moved to dc_common.h
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@708 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:35 +01:00
gombasg 1d3a84bedf Avoid calling accept() since it is not present on Windows
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@706 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:35 +01:00
gombasg f8d85ebbff Use __attribute__ only with gcc
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@705 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:35 +01:00
gombasg f23325e93a Windows compatibility improvements
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@699 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:35 +01:00
gombasg 01fc1428bb Prototypes for _DC_parseBoolean(), _DC_createPhysicalFile() and _DC_destroyPhysicalFile()
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@680 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:33 +01:00
gombasg ca2ab1d0be New helper functions: DC_getCfgBool(), DC_getClientCfgBool()
Move _DC_createPhysicalFile() and _DC_destroyPhysicalFile() to common/util.c


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@679 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:33 +01:00
gombasg f8376bedb8 Helper header for definitions that are missing on Windows
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@678 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:33 +01:00
gombasg ab2761ab91 Rename symbols so there are no conflicts between the client and the master
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@574 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:28 +01:00
gombasg 21a94ef352 Move the definitions of common configuration keys to dc_internal.h
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@570 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:27 +01:00
gombasg de652249dc Move the definiton of logical names for stdout/stderr/client log to dc_common.h
and rename them to DC_LABEL_*


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@569 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:27 +01:00
gombasg a3e599332e Add DC_getClientCfgDouble() because BOINC sometimes requires configuration
values that do not fit in an 'int'


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@539 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:26 +01:00
gombasg 32280f169f Add 'const' where it is appropriate
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@493 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:24 +01:00
gombasg f15ecb6d62 Fix some typos
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@485 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:23 +01:00
gombasg 81b579c6f8 - New functions: DC_getCfgInt(), DC_getClientCfgStr(), DC_getClientCfgInt()
- DC_getCfgStr() now returns dynamically allocated memory
- Use glib's key-vale-file parsing on the master side
- Allow unit suffixes for numeric values (like "1GB")


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@479 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:23 +01:00
gombasg d181ae847d Tell GCC that DC_finish() does not return
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@462 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:22 +01:00
gombasg a131872db8 Rename _DC_getCfgStr() to DC_getCfgStr() and move it to dc_common.h
Move DC_log() and DC_vlog() to dc_common.h so they are also available on
the client side


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@461 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:22 +01:00
gombasg 875c99b07f New internal function: _DC_copyFile
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@437 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:20 +01:00
gombasg 52d956c55d New error code: DC_ERR_SYSTEM
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@436 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:20 +01:00
gombasg c37cb61e5c Rename DC_Filetype to DC_FileType
Let event handling on the client side be similar to the master side


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@426 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:20 +01:00
gombasg 4228d70513 Move documentation to gtk-doc-tools
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@425 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:20 +01:00
gombasg d6f981253b Add API support for receiving messages
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@409 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:18 +01:00
gombasg 5dc21f22f9 Rename DC_processResults() to DC_processEvents()
Add file mode to DC_PhysicalFile


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@385 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:18 +01:00
gombasg 2d58e3c535 Add new error codes
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@363 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:17 +01:00
gombasg 6b2a77c9d9 Various cleanups
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@351 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:16 +01:00
gombasg 92d8f82579 Rename the configuration file handling functions and move them to a top-level header
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@344 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:16 +01:00
gombasg b05befe6db Uploading the new API
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@343 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:16 +01:00
gombasg df5c6cc7da Minor rearrangements
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@330 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:15 +01:00
gombasg 8d633795d7 dc_common.h needs to be installed
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@329 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:15 +01:00
gombasg 1cbadb0f36 Use gcc for checking the arguments of DC_log() and DC_vlog()
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@322 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:15 +01:00
gombasg 004f56dc7a Use the same function naming convention as the server side
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@321 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:15 +01:00