00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the 00007 * "License"); you may not use this file except in compliance 00008 * with the License. You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, 00013 * software distributed under the License is distributed on an 00014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00015 * KIND, either express or implied. See the License for the 00016 * specific language governing permissions and limitations 00017 * under the License. 00018 */ 00019 00020 #ifndef _GUAC_PLUGIN_CONSTANTS_H 00021 #define _GUAC_PLUGIN_CONSTANTS_H 00022 00032 #define GUAC_PROTOCOL_LIBRARY_PREFIX "libguac-client-" 00033 00037 #define GUAC_PROTOCOL_LIBRARY_SUFFIX ".so" 00038 00043 #define GUAC_PROTOCOL_NAME_LIMIT 256 00044 00051 #define GUAC_PROTOCOL_LIBRARY_LIMIT ( \ 00052 \ 00053 sizeof(GUAC_PROTOCOL_LIBRARY_PREFIX) - 1 /* "libguac-client-" */ \ 00054 + GUAC_PROTOCOL_NAME_LIMIT - 1 /* [up to 256 chars] */ \ 00055 + sizeof(GUAC_PROTOCOL_LIBRARY_SUFFIX) - 1 /* ".so" */ \ 00056 + 1 /* NULL terminator */ \ 00057 \ 00058 ) 00059 00060 #endif 00061