log.h (1894B)
1/* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. 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, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20#ifndef GUAC_VNC_LOG_H 21#define GUAC_VNC_LOG_H 22 23#include "config.h" 24 25#include "client.h" 26#include "common/iconv.h" 27#include "common/surface.h" 28 29#include <cairo/cairo.h> 30#include <guacamole/client.h> 31#include <guacamole/layer.h> 32#include <guacamole/protocol.h> 33#include <guacamole/socket.h> 34#include <rfb/rfbclient.h> 35#include <rfb/rfbproto.h> 36 37#include <stdarg.h> 38#include <stdio.h> 39#include <stdlib.h> 40#include <syslog.h> 41 42/** 43 * Callback invoked by libVNCServer when an informational message needs to be 44 * logged. 45 * 46 * @param format 47 * A printf-style format string to log. 48 * 49 * @param ... 50 * The values to use when filling the conversion specifiers within the 51 * format string. 52 */ 53void guac_vnc_client_log_info(const char* format, ...); 54 55/** 56 * Callback invoked by libVNCServer when an error message needs to be logged. 57 * 58 * @param format 59 * A printf-style format string to log. 60 * 61 * @param ... 62 * The values to use when filling the conversion specifiers within the 63 * format string. 64 */ 65void guac_vnc_client_log_error(const char* format, ...); 66 67#endif 68