#endif
#include <stdarg.h>
+#include <stdio.h>
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef HAVE_VSNPRINTF
int vsnprintf(char *str, size_t n, const char *format, va_list ap);
#endif
+#ifdef __cplusplus
+};
+#endif
+
#endif /* OS_PRINT_H */
#include <windows.h>
#endif
+#include <string.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <os/print.h>
+
using namespace rdr;
+Exception::Exception(const char *format, ...) {
+ va_list ap;
+
+ va_start(ap, format);
+ (void) vsnprintf(str_, len, format, ap);
+ va_end(ap);
+}
+
SystemException::SystemException(const char* s, int err_)
: Exception(s), err(err_)
{
#ifndef __RDR_EXCEPTION_H__
#define __RDR_EXCEPTION_H__
-#include <stdio.h>
-#include <string.h>
-
namespace rdr {
struct Exception {
enum { len = 256 };
char str_[len];
- Exception(const char* s=0) {
- str_[0] = 0;
- if (s)
- strncat(str_, s, len-1);
- else
- strcat(str_, "Exception");
- }
+ Exception(const char *format = 0, ...);
virtual ~Exception() {}
virtual const char* str() const { return str_; }
};
#include <rdr/ZlibOutStream.h>
#include <rdr/Exception.h>
+#include <os/print.h>
+
#include <zlib.h>
using namespace rdr;
#include <rfb/CMsgReaderV3.h>
#include <rfb/CMsgHandler.h>
#include <rfb/util.h>
+#include <stdio.h>
using namespace rfb;
* USA.
*/
#include <stdio.h>
+#include <string.h>
#include <vector>
#include <rdr/types.h>
#include <rfb/Exception.h>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
+#include <stdio.h>
#include <rdr/InStream.h>
#include <rdr/OutStream.h>
#include <rfb/Exception.h>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
+
+#include <stdio.h>
#include <rfb/PixelFormat.h>
#include <rfb/msgTypes.h>
#include <rfb/Exception.h>
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <rfb/PixelFormat.h>
#include <rfb/Exception.h>
#include <rfb/ConnParams.h>
vncpasswd_CPPFLAGS = -I$(COMMON_DIR)
-vncpasswd_LDADD = $(COMMON_DIR)/rfb/librfb.la
+vncpasswd_LDADD = $(COMMON_DIR)/rfb/librfb.la $(COMMON_DIR)/rdr/librdr.la
EXTRA_DIST = vncpasswd.man