summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/LMI_SymbolicLinkProvider.c
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2014-04-29 08:33:13 +0200
committerJan Synacek <jsynacek@redhat.com>2014-04-30 15:54:14 +0200
commit55f63d29f5d2b4e82979d71386df58394e87ef5a (patch)
tree34227f5696df9b3a85c5999d2fd48f50be82681f /src/logicalfile/LMI_SymbolicLinkProvider.c
parentdab89c6afb2a2b339ebadea3d47e841cd749b5ef (diff)
downloadopenlmi-providers-55f63d29f5d2b4e82979d71386df58394e87ef5a.tar.gz
openlmi-providers-55f63d29f5d2b4e82979d71386df58394e87ef5a.tar.xz
openlmi-providers-55f63d29f5d2b4e82979d71386df58394e87ef5a.zip
libopenlmi: reorganize and gather
Make naming consistent. Gather common functionality into one library and try to use it across all providers. Introduce libtool-style versioning for libraries.
Diffstat (limited to 'src/logicalfile/LMI_SymbolicLinkProvider.c')
-rw-r--r--src/logicalfile/LMI_SymbolicLinkProvider.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/logicalfile/LMI_SymbolicLinkProvider.c b/src/logicalfile/LMI_SymbolicLinkProvider.c
index e200316..68a6142 100644
--- a/src/logicalfile/LMI_SymbolicLinkProvider.c
+++ b/src/logicalfile/LMI_SymbolicLinkProvider.c
@@ -66,11 +66,11 @@ static CMPIStatus LMI_SymbolicLinkGetInstance(
logicalfile_t logicalfile;
st = lmi_check_required(_cb, cc, cop);
- check_status(st);
+ lmi_check_status(st);
LMI_SymbolicLink_InitFromObjectPath(&logicalfile.lf.symboliclink, _cb, cop);
st = stat_logicalfile_and_fill(_cb, &logicalfile, S_IFLNK, "No such symlink: %s");
- check_status(st);
+ lmi_check_status(st);
KReturnInstance(cr, logicalfile.lf.symboliclink);
return st;
@@ -85,12 +85,12 @@ static CMPIStatus LMI_SymbolicLinkCreateInstance(
{
CMPIStatus st = {.rc = CMPI_RC_OK};
CMPIObjectPath *iop = CMGetObjectPath(ci, &st);
- check_status(st);
+ lmi_check_status(st);
st = lmi_check_required(_cb, cc, iop);
- check_status(st);
+ lmi_check_status(st);
- const char *path = get_string_property_from_instance(ci, "Name");
- const char *target = get_string_property_from_instance(ci, "TargetFile");
+ const char *path = lmi_get_string_property_from_instance(ci, "Name");
+ const char *target = lmi_get_string_property_from_instance(ci, "TargetFile");
bool allow = lmi_read_config_boolean("LMI_SymbolicLink", "AllowSymlink");