diff options
author | Jan Synacek <jsynacek@redhat.com> | 2013-02-08 13:16:31 +0100 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2013-02-11 13:10:40 +0100 |
commit | 7f40ebbf575d93a9d0bc540c484969ec614f308b (patch) | |
tree | 3a698f3560c626c5e9ca6aa060dc1c4b3e836b0a /src/logicalfile/LMI_FIFOPipeFileProvider.c | |
parent | 80a4e2961a65f9922e000d27ce642a4789588648 (diff) | |
download | openlmi-providers-7f40ebbf575d93a9d0bc540c484969ec614f308b.tar.gz openlmi-providers-7f40ebbf575d93a9d0bc540c484969ec614f308b.tar.xz openlmi-providers-7f40ebbf575d93a9d0bc540c484969ec614f308b.zip |
New provider: LogicalFile
Diffstat (limited to 'src/logicalfile/LMI_FIFOPipeFileProvider.c')
-rw-r--r-- | src/logicalfile/LMI_FIFOPipeFileProvider.c | 147 |
1 files changed, 147 insertions, 0 deletions
diff --git a/src/logicalfile/LMI_FIFOPipeFileProvider.c b/src/logicalfile/LMI_FIFOPipeFileProvider.c new file mode 100644 index 0000000..3a4c1ff --- /dev/null +++ b/src/logicalfile/LMI_FIFOPipeFileProvider.c @@ -0,0 +1,147 @@ +/* + * Copyright (C) 2012 Red Hat, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Jan Synacek <jsynacek@redhat.com> + */ +#include <konkret/konkret.h> +#include "LMI_FIFOPipeFile.h" +#include "file.h" + +static const CMPIBroker* _cb = NULL; + +static void LMI_FIFOPipeFileInitialize() +{ +} + +static CMPIStatus LMI_FIFOPipeFileCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus LMI_FIFOPipeFileEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus LMI_FIFOPipeFileEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus LMI_FIFOPipeFileGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + get_instance(FIFOPipeFile, S_IFIFO, "No such FIFO: %s"); + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus LMI_FIFOPipeFileCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus LMI_FIFOPipeFileModifyInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci, + const char** properties) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus LMI_FIFOPipeFileDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus LMI_FIFOPipeFileExecQuery( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* lang, + const char* query) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +CMInstanceMIStub( + LMI_FIFOPipeFile, + LMI_FIFOPipeFile, + _cb, + LMI_FIFOPipeFileInitialize()) + +static CMPIStatus LMI_FIFOPipeFileMethodCleanup( + CMPIMethodMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus LMI_FIFOPipeFileInvokeMethod( + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + return LMI_FIFOPipeFile_DispatchMethod( + _cb, mi, cc, cr, cop, meth, in, out); +} + +CMMethodMIStub( + LMI_FIFOPipeFile, + LMI_FIFOPipeFile, + _cb, + LMI_FIFOPipeFileInitialize()) + +KONKRET_REGISTRATION( + "root/cimv2", + "LMI_FIFOPipeFile", + "LMI_FIFOPipeFile", + "instance method") +/* vi: set et: */ |