1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright 2002-2003 Sun Microsystems, Inc. All rights reserved. 24*0Sstevel@tonic-gate * Use is subject to license terms. 25*0Sstevel@tonic-gate */ 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate #ifndef _MESSAGESTRINGS_H 28*0Sstevel@tonic-gate #define _MESSAGESTRINGS_H 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate #ifdef __cplusplus 33*0Sstevel@tonic-gate extern "C" { 34*0Sstevel@tonic-gate #endif 35*0Sstevel@tonic-gate 36*0Sstevel@tonic-gate /* 37*0Sstevel@tonic-gate * dgettext is normally defined by including libintl.h. However, the file 38*0Sstevel@tonic-gate * /usr/sadm/lib/wbem/include/cimapi.h erroneously defines gettext so that 39*0Sstevel@tonic-gate * they can play games with L10N in the CIM functions. If we try to undef 40*0Sstevel@tonic-gate * gettext before we include libintl.h we get a complaint from hdrchk. So, 41*0Sstevel@tonic-gate * just declare the extern here to work around this mess. 42*0Sstevel@tonic-gate */ 43*0Sstevel@tonic-gate extern char *dgettext(const char *, const char *); 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gate /* cim failures */ 46*0Sstevel@tonic-gate #define CREATE_PROPERTY_FAILURE \ 47*0Sstevel@tonic-gate util_routineFailureMessage("cim_createProperty") 48*0Sstevel@tonic-gate #define ADD_PROPERTY_FAILURE \ 49*0Sstevel@tonic-gate util_routineFailureMessage("cim_addProperty") 50*0Sstevel@tonic-gate #define ADD_INSTANCE_FAILURE \ 51*0Sstevel@tonic-gate util_routineFailureMessage("cim_addInstance") 52*0Sstevel@tonic-gate #define GET_INSTANCE_FAILURE \ 53*0Sstevel@tonic-gate util_routineFailureMessage("cim_getInstance") 54*0Sstevel@tonic-gate #define CREATE_INSTANCE_LIST_FAILURE \ 55*0Sstevel@tonic-gate util_routineFailureMessage("cim_createInstanceList") 56*0Sstevel@tonic-gate #define CREATE_INSTANCE_FAILURE \ 57*0Sstevel@tonic-gate util_routineFailureMessage("cim_createInstance") 58*0Sstevel@tonic-gate #define CREATE_OBJECT_LIST_FAILURE \ 59*0Sstevel@tonic-gate util_routineFailureMessage("cim_createObjectPathList") 60*0Sstevel@tonic-gate #define CREATE_OBJECT_PATH_FAILURE \ 61*0Sstevel@tonic-gate util_routineFailureMessage("cim_createObjectPath") 62*0Sstevel@tonic-gate #define ENUM_INSTANCES_FAILURE \ 63*0Sstevel@tonic-gate util_routineFailureMessage("cim_enumerateInstances") 64*0Sstevel@tonic-gate #define ENUM_INSTANCENAMES_FAILURE \ 65*0Sstevel@tonic-gate util_routineFailureMessage("cim_enumerateInstanceNames") 66*0Sstevel@tonic-gate #define COPY_OBJPATH_FAILURE \ 67*0Sstevel@tonic-gate util_routineFailureMessage("cim_copyObjectPath") 68*0Sstevel@tonic-gate #define CREATE_REFPROP_FAILURE \ 69*0Sstevel@tonic-gate util_routineFailureMessage("cim_createReferenceProperty") 70*0Sstevel@tonic-gate #define ASSOCIATOR_NAMES_FAILURE \ 71*0Sstevel@tonic-gate util_routineFailureMessage("cim_associatorNames") 72*0Sstevel@tonic-gate 73*0Sstevel@tonic-gate /* dm api failures */ 74*0Sstevel@tonic-gate #define DM_GET_ATTR_FAILURE \ 75*0Sstevel@tonic-gate util_routineFailureMessage("dm_get_attributes") 76*0Sstevel@tonic-gate #define DM_GET_NAME_FAILURE \ 77*0Sstevel@tonic-gate util_routineFailureMessage("dm_get_name") 78*0Sstevel@tonic-gate #define DM_GET_ASSOC_FAILURE \ 79*0Sstevel@tonic-gate util_routineFailureMessage("dm_get_associated_descriptors") 80*0Sstevel@tonic-gate #define DM_GET_DESC_BYNAME_FAILURE \ 81*0Sstevel@tonic-gate util_routineFailureMessage("dm_get_descriptor_by_name") 82*0Sstevel@tonic-gate #define DM_GET_DESCRIPTORS \ 83*0Sstevel@tonic-gate util_routineFailureMessage("dm_get_descriptors") 84*0Sstevel@tonic-gate 85*0Sstevel@tonic-gate /* descriptor function failures */ 86*0Sstevel@tonic-gate #define DRIVE_DESC_TO_INSTANCE_FAILURE \ 87*0Sstevel@tonic-gate util_routineFailureMessage("drive_descriptor_toCCIMInstance") 88*0Sstevel@tonic-gate #define PART_DESC_TO_INSTANCE_FAILURE \ 89*0Sstevel@tonic-gate util_routineFailureMessage("partition_descriptor_toCCIMInstance") 90*0Sstevel@tonic-gate #define DISK_DESC_TO_INSTANCE_FAILURE \ 91*0Sstevel@tonic-gate util_routineFailureMessage("disk_descriptor_toCCIMInstance") 92*0Sstevel@tonic-gate #define LOGICALDISK_DESC_TO_INSTANCE_FAILURE \ 93*0Sstevel@tonic-gate util_routineFailureMessage("logicaldisk_descriptor_toCCIMInstance") 94*0Sstevel@tonic-gate #define SCSICTRL_DESC_TO_INSTANCE_FAILURE \ 95*0Sstevel@tonic-gate util_routineFailureMessage("scsictrl_descriptor_toCCIMInstance") 96*0Sstevel@tonic-gate #define IDECTRL_DESC_TO_INSTANCE_FAILURE \ 97*0Sstevel@tonic-gate util_routineFailureMessage("idectrl_descriptor_toCCIMInstance") 98*0Sstevel@tonic-gate #define USBCTRL_DESC_TO_INSTANCE_FAILURE \ 99*0Sstevel@tonic-gate util_routineFailureMessage("usbctrl_descriptor_toCCIMInstance") 100*0Sstevel@tonic-gate #define FCCTRL_DESC_TO_INSTANCE_FAILURE \ 101*0Sstevel@tonic-gate util_routineFailureMessage("fcctrl_descriptor_toCCIMInstance") 102*0Sstevel@tonic-gate #define MPXIOCTRL_DESC_TO_INSTANCE_FAILURE \ 103*0Sstevel@tonic-gate util_routineFailureMessage("mpxioctrl_descriptor_toCCIMInstance") 104*0Sstevel@tonic-gate #define UCTRL_DESC_TO_INSTANCE_FAILURE \ 105*0Sstevel@tonic-gate util_routineFailureMessage("unknownctrl_descriptor_toCCIMInstance") 106*0Sstevel@tonic-gate #define MPXIOGRP_DESC_TO_INSTANCE_FAILURE \ 107*0Sstevel@tonic-gate util_routineFailureMessage("mpxiogroup_descriptor_toCCIMInstance") 108*0Sstevel@tonic-gate #define PARTBASEDON_DESC_TO_INSTANCE_FAILURE \ 109*0Sstevel@tonic-gate util_routineFailureMessage("diskpartbo_descriptor_toCCIMInstance") 110*0Sstevel@tonic-gate #define REALIZESEXT_DESC_TO_INSTANCE_FAILURE \ 111*0Sstevel@tonic-gate util_routineFailureMessage("realizesextent_descriptor_toCCIMInstance") 112*0Sstevel@tonic-gate #define REALIZESDD_DESC_TO_INSTANCE_FAILURE \ 113*0Sstevel@tonic-gate util_routineFailureMessage( \ 114*0Sstevel@tonic-gate "realizesdiskdrive_descriptor_toCCIMInstance") 115*0Sstevel@tonic-gate #define MEDIAPRES_DESC_TO_INSTANCE_FAILURE \ 116*0Sstevel@tonic-gate util_routineFailureMessage("mediapresent_descriptor_toCCIMInstance") 117*0Sstevel@tonic-gate #define SCSIINT_ASSOC_TO_INSTANCE_FAILURE \ 118*0Sstevel@tonic-gate util_routineFailureMessage("scsiIntAssocToInst") 119*0Sstevel@tonic-gate #define FCINT_ASSOC_TO_INSTANCE_FAILURE \ 120*0Sstevel@tonic-gate util_routineFailureMessage("fcIntAssocToInst") 121*0Sstevel@tonic-gate #define USBINT_ASSOC_TO_INSTANCE_FAILURE \ 122*0Sstevel@tonic-gate util_routineFailureMessage("usbIntAssocToInst") 123*0Sstevel@tonic-gate #define MPXIOINT_ASSOC_TO_INSTANCE_FAILURE \ 124*0Sstevel@tonic-gate util_routineFailureMessage("mpxioIntAssocToInst") 125*0Sstevel@tonic-gate #define IDEINT_ASSOC_TO_INSTANCE_FAILURE \ 126*0Sstevel@tonic-gate util_routineFailureMessage("ideIntAssocToInst") 127*0Sstevel@tonic-gate #define MEDIAPRES_ASSOC_TO_INSTANCE_FAILURE \ 128*0Sstevel@tonic-gate util_routineFailureMessage("MediaPresAssocToInst") 129*0Sstevel@tonic-gate #define UTIL_FILEOPEN_FAILURE \ 130*0Sstevel@tonic-gate util_routineFailureMessage("util_OpenFile") 131*0Sstevel@tonic-gate #define UTIL_FILECLOSE_FAILURE \ 132*0Sstevel@tonic-gate util_routineFailureMessage("util_CloseFile") 133*0Sstevel@tonic-gate #define UTIL_FILEREMOVE_FAILURE \ 134*0Sstevel@tonic-gate util_routineFailureMessage("util_RemoveFile") 135*0Sstevel@tonic-gate 136*0Sstevel@tonic-gate /* General failures */ 137*0Sstevel@tonic-gate #define LOW_MEMORY \ 138*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN, "Not enough memory Failure.") 139*0Sstevel@tonic-gate #define GENERAL_FAILURE \ 140*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN, "General Failure.") 141*0Sstevel@tonic-gate #define NO_SUCH_METHOD \ 142*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN, "No Such Method Defined.") 143*0Sstevel@tonic-gate #define NVLIST_FAILURE \ 144*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN, "The nvlist action failed.") 145*0Sstevel@tonic-gate #define NO_SUCH_CLASS \ 146*0Sstevel@tonic-gate dgettext(TEXT_DOMAIN, "Class Not Found.") 147*0Sstevel@tonic-gate 148*0Sstevel@tonic-gate #ifdef __cplusplus 149*0Sstevel@tonic-gate } 150*0Sstevel@tonic-gate #endif 151*0Sstevel@tonic-gate 152*0Sstevel@tonic-gate #endif /* _MESSAGESTRINGS_H */ 153