All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.freedesktop.wayland.client.jna.WaylandClientLibraryMapping Maven / Gradle / Ivy

//Copyright 2015 Erik De Rijcke
//
//Licensed under the Apache License,Version2.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.
package org.freedesktop.wayland.client.jna;

import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
import org.freedesktop.wayland.util.jna.WaylandUtilLibraryMapping;
import org.freedesktop.wayland.util.jna.wl_dispatcher_func_t;
import org.freedesktop.wayland.util.jna.wl_log_func_t;


public interface WaylandClientLibraryMapping extends WaylandUtilLibraryMapping {

    public static final String JNA_LIBRARY_NAME = "wayland-client";

    void wl_event_queue_destroy(Pointer queue);

    void wl_proxy_marshal_array(Pointer p,
                                int opcode,
                                Pointer args);

    Pointer wl_proxy_create(Pointer factory,
                            Pointer interface$);

    Pointer wl_proxy_marshal_array_constructor(Pointer proxy,
                                               int opcode,
                                               Pointer args,
                                               Pointer interface$);

    void wl_proxy_destroy(Pointer proxy);

    int wl_proxy_add_listener(Pointer proxy,
                              Pointer implementation,
                              Pointer data);

    Pointer wl_proxy_get_listener(Pointer proxy);

    int wl_proxy_add_dispatcher(Pointer proxy,
                                wl_dispatcher_func_t dispatcher_func,
                                Pointer dispatcher_data,
                                Pointer data);

    void wl_proxy_set_user_data(Pointer proxy,
                                Pointer user_data);

    Pointer wl_proxy_get_user_data(Pointer proxy);

    int wl_proxy_get_id(Pointer proxy);

    String wl_proxy_get_class(Pointer proxy);

    void wl_proxy_set_queue(Pointer proxy,
                            Pointer queue);

    Pointer wl_display_connect(Pointer name);

    Pointer wl_display_connect_to_fd(int fd);

    void wl_display_disconnect(Pointer display);

    int wl_display_get_fd(Pointer display);

    int wl_display_dispatch(Pointer display);

    int wl_display_dispatch_queue(Pointer display,
                                  Pointer queue);

    int wl_display_dispatch_queue_pending(Pointer display,
                                          Pointer queue);

    int wl_display_dispatch_pending(Pointer display);

    int wl_display_get_error(Pointer display);

    int wl_display_get_protocol_error(Pointer display,
                                      Pointer interface$,
                                      IntByReference id);

    int wl_display_flush(Pointer display);

    int wl_display_roundtrip_queue(Pointer display,
                                   Pointer queue);

    int wl_display_roundtrip(Pointer display);

    Pointer wl_display_create_queue(Pointer display);

    int wl_display_prepare_read_queue(Pointer display,
                                      Pointer queue);

    int wl_display_prepare_read(Pointer display);

    void wl_display_cancel_read(Pointer display);

    int wl_display_read_events(Pointer display);

    void wl_log_set_handler_client(wl_log_func_t handler);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy