Fix some in result.c and adding it to Makefile

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@532 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
vida 2006-05-10 09:22:58 +00:00 committed by Adam Visegradi
parent 6a0ef91948
commit 977ca12654
2 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/common $(GLIB_CFLAGS)
libdc_local_la_SOURCES = \
dc.c \
rm.c \
events.c
events.c \
result.c
libdc_local_la_LIBADD = ../common/libdc-common-master.la $(GLIB_LIBS)
libdc_client_local_la_SOURCES = client.c

View File

@ -53,14 +53,14 @@ void _DC_destroyResult(DC_Result *result)
{
while (result->output_files)
{
_DC_destroyPhysicalFile((_DC_PhysicalFile *)result->output_files->data);
_DC_destroyPhysicalFile((DC_PhysicalFile *)result->output_files->data);
result->output_files = g_list_delete_link(result->output_files,
result->output_files);
}
g_free(result);
}
unsigned DC_getResultCapabilities(DC_Result *result)
unsigned DC_getResultCapabilities(const DC_Result *result)
{
return (DC_GC_STDOUT | DC_GC_STDERR | DC_GC_EXITCODE);
}
@ -70,7 +70,7 @@ DC_Workunit *DC_getResultWU(DC_Result *result)
return result->wu;
}
int DC_getResultExit(DC_Result *result)
int DC_getResultExit(const DC_Result *result)
{
int status;
pid_t retval, pid;
@ -94,7 +94,7 @@ int DC_getResultExit(DC_Result *result)
return WEXITSTATUS(status);
}
char *DC_getResultOutput(DC_Result *result, const char *logicalFileName)
char *DC_getResultOutput(const DC_Result *result, const char *logicalFileName)
{
char *physicalFileName;
GList *l;