TUTORIAL: Add skeleton ball protocol files.

This commit is contained in:
Nick Couchman 2020-12-30 18:14:09 -05:00
parent 68c5dd1730
commit 6bca037e01
4 changed files with 59 additions and 3 deletions

View File

@ -35,15 +35,17 @@ DIST_SUBDIRS = \
src/guacenc \
src/guaclog \
src/pulse \
src/protocols/ball \
src/protocols/kubernetes \
src/protocols/rdp \
src/protocols/ssh \
src/protocols/telnet \
src/protocols/vnc
SUBDIRS = \
src/libguac \
src/common
SUBDIRS = \
src/libguac \
src/common \
src/protocols/ball
if ENABLE_COMMON_SSH
SUBDIRS += src/common-ssh

View File

@ -1140,6 +1140,7 @@ AC_CONFIG_FILES([Makefile
src/guaclog/Makefile
src/guaclog/man/guaclog.1
src/pulse/Makefile
src/protocols/ball/Makefile
src/protocols/kubernetes/Makefile
src/protocols/rdp/Makefile
src/protocols/rdp/tests/Makefile

View File

@ -0,0 +1,20 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
AM_FLAGS = -Werror -Wall -pedantic
lib_LTLIBRARIES = libguac-client-ball.la
libguac_client_ball_la_SOURCES = \
ball.c
libguac_client_ball_la_CFLAGS = \
-Werror -Wall -Iinclude \
@LIBGUAC_INCLUDE@
libguac_client_ball_la_LIBADD = \
@COMMON_LTLIB@ \
@LIBGUAC_LTLIB@
libguac_client_ball_la_LDFLAGS = \
-version-info 0:0:0

33
src/protocols/ball/ball.c Normal file
View File

@ -0,0 +1,33 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#include <guacamole/client.h>
#include <stdlib.h>
const char* TUTORIAL_ARGS[] = { NULL };
int guac_client_init(guac_client* client) {
client->args = TUTORIAL_ARGS;
return 0;
}