From 977ca126544ee7eaaf39d5f54908173dc1119078 Mon Sep 17 00:00:00 2001 From: vida Date: Wed, 10 May 2006 09:22:58 +0000 Subject: [PATCH] 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 --- dcapi/local/Makefile.am | 3 ++- dcapi/local/result.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dcapi/local/Makefile.am b/dcapi/local/Makefile.am index b0f430ec85..63dcc3b794 100644 --- a/dcapi/local/Makefile.am +++ b/dcapi/local/Makefile.am @@ -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 diff --git a/dcapi/local/result.c b/dcapi/local/result.c index 91e14501a1..bf4dc21572 100644 --- a/dcapi/local/result.c +++ b/dcapi/local/result.c @@ -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;