Home | History | Annotate | Download | only in ipphelper
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  * Copyright (C) 2016 Mopria Alliance, Inc.
      4  * Copyright (C) 2013 Hewlett-Packard Development Company, L.P.
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 
     19 #ifndef _IPP_STATUS_H_
     20 #define _IPP_STATUS_H_
     21 
     22 #include "http.h"
     23 #include "ipp.h"
     24 #include "ifc_printer_capabilities.h"
     25 
     26 #ifdef __cplusplus
     27 extern "C" {
     28 #endif // __cplusplus
     29 
     30 #define IPP_PRINT_ORIENTATION_PORTRAIT    3
     31 #define IPP_PRINT_ORIENTATION_LANDSCAPE    4
     32 
     33 /*
     34  * IPP sides
     35  */
     36 #define IPP_SIDES_TAG                  "sides"
     37 #define IPP_SIDES_ONE_SIDED            "one-sided"
     38 #define IPP_SIDES_TWO_SIDED_LONG_EDGE  "two-sided-long-edge"
     39 #define IPP_SIDES_TWO_SIDED_SHORT_EDGE "two-sided-short-edge"
     40 
     41 /*
     42  * IPP output mode
     43  */
     44 #define IPP_OUTPUT_MODE_TAG          "print-color-mode"
     45 #define IPP_OUTPUT_MODE_COLOR        "color"
     46 #define IPP_OUTPUT_MODE_MONO         "monochrome"
     47 
     48 /*
     49  * IPP Printer State Reasons
     50  */
     51 #define IPP_NONE_STR                        "none"
     52 
     53 /*
     54  * According to RFC2911, any of these can have -error, -warning, or -report appended to end
     55  */
     56 #define IPP_PRNT_STATE_OTHER_ERR            "other"
     57 #define IPP_PRNT_STATE_OTHER_WARN           "other-warning"
     58 #define IPP_PRNT_STATE_NONE                 IPP_NONE_STR
     59 #define IPP_PRNT_STATE_MEDIA_JAM            "media-jam"
     60 #define IPP_PRNT_PAUSED                     "paused"
     61 #define IPP_PRNT_SHUTDOWN                   "shutdown"
     62 #define IPP_PRNT_STATE_TONER_LOW            "toner-low"
     63 #define IPP_PRNT_STATE_TONER_EMPTY          "toner-empty"
     64 #define IPP_PRNT_STATE_SPOOL_FULL           "spool-area-full"
     65 #define IPP_PRNT_STATE_DOOR_OPEN            "door-open"
     66 #define IPP_PRNT_STATE_MEDIA_EMPTY          "media-empty"
     67 #define IPP_PRNT_STATE_MEDIA_NEEDED         "media-needed"
     68 #define IPP_PRNT_STATE_MARKER_SUPPLY_LOW    "marker-supply-low"
     69 #define IPP_PRNT_STATE_MARKER_SUPPLY_EMPTY  "marker-supply-empty"
     70 #define IPP_PRNT_STATE_COVER_OPEN           "cover-open"
     71 
     72 #ifdef __cplusplus
     73 }
     74 #endif // __cplusplus
     75 
     76 #endif // !_IPP_STATUS_H_