wlmaker
Loading...
Searching...
No Matches
Classes | Functions | Variables
toplevel_list.c File Reference
#include "toplevel_list.h"
#include <libbase/libbase.h>
#include <stdio.h>
#include <stdlib.h>
#include "ext-foreign-toplevel-list-v1-client-protocol.h"
#include "wlclient/wlclient.h"
Include dependency graph for toplevel_list.c:

Classes

struct  wlmtool_toplevel_list_state
 
struct  wlmtool_toplevel_info
 

Functions

static void _wlmtool_toplevel_setup (void *bound_interface_ptr, void *userdata_ptr)
 
static void _wlmtool_handle_toplevel (void *data, struct ext_foreign_toplevel_list_v1 *ext_foreign_toplevel_list_v1, struct ext_foreign_toplevel_handle_v1 *toplevel)
 
static void _wlmtool_handle_finished (void *data, struct ext_foreign_toplevel_list_v1 *ext_foreign_toplevel_list_v1)
 
static void _wlmtool_toplevel_handle_closed (void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1)
 
static void _wlmtool_toplevel_handle_done (void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1)
 
static void _wlmtool_toplevel_handle_title (void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1, const char *title)
 
static void _wlmtool_toplevel_handle_app_id (void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1, const char *app_id)
 
static void _wlmtool_toplevel_handle_identifier (void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1, const char *identifier)
 
bool wlmtool_ext_foreign_toplevel_list (int argc, const char **argv)
 

Variables

static const struct ext_foreign_toplevel_list_v1_listener _wlmtool_listener
 
static const struct ext_foreign_toplevel_handle_v1_listener _toplevel_listener
 

Detailed Description

Licensed 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

https://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.

Function Documentation

◆ _wlmtool_handle_finished()

void _wlmtool_handle_finished ( void *  data,
struct ext_foreign_toplevel_list_v1 *  ext_foreign_toplevel_list_v1 
)
static

Toplevel list is done, destroy.

◆ _wlmtool_handle_toplevel()

void _wlmtool_handle_toplevel ( void *  data,
struct ext_foreign_toplevel_list_v1 *  ext_foreign_toplevel_list_v1,
struct ext_foreign_toplevel_handle_v1 *  toplevel 
)
static

Toplevel was added.

◆ _wlmtool_toplevel_handle_app_id()

void _wlmtool_toplevel_handle_app_id ( void *  data,
struct ext_foreign_toplevel_handle_v1 *  ext_foreign_toplevel_handle_v1,
const char *  app_id 
)
static

Toplevel updates the app id.

◆ _wlmtool_toplevel_handle_closed()

void _wlmtool_toplevel_handle_closed ( void *  data,
struct ext_foreign_toplevel_handle_v1 *  ext_foreign_toplevel_handle_v1 
)
static

Toplevel closed.

◆ _wlmtool_toplevel_handle_done()

void _wlmtool_toplevel_handle_done ( void *  data,
struct ext_foreign_toplevel_handle_v1 *  ext_foreign_toplevel_handle_v1 
)
static

Toplevel updates done. Print them.

◆ _wlmtool_toplevel_handle_identifier()

void _wlmtool_toplevel_handle_identifier ( void *  data,
struct ext_foreign_toplevel_handle_v1 *  ext_foreign_toplevel_handle_v1,
const char *  identifier 
)
static

Toplevel updates the identifier.

◆ _wlmtool_toplevel_handle_title()

void _wlmtool_toplevel_handle_title ( void *  data,
struct ext_foreign_toplevel_handle_v1 *  ext_foreign_toplevel_handle_v1,
const char *  title 
)
static

Toplevel updates the title.

◆ _wlmtool_toplevel_setup()

void _wlmtool_toplevel_setup ( void *  bound_interface_ptr,
void *  userdata_ptr 
)
static

Setup callback for binding the ext-foreign-toplevel-list-v1 interface.

◆ wlmtool_ext_foreign_toplevel_list()

bool wlmtool_ext_foreign_toplevel_list ( int  argc,
const char **  argv 
)

wlmtool command for listing toplevels of ext-foreign-toplevel-list.

Parameters
argc
argv
Returns
true on success.

Variable Documentation

◆ _toplevel_listener

const struct ext_foreign_toplevel_handle_v1_listener _toplevel_listener
static
Initial value:
= {
}
static void _wlmtool_toplevel_handle_identifier(void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1, const char *identifier)
Definition toplevel_list.c:238
static void _wlmtool_toplevel_handle_title(void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1, const char *title)
Definition toplevel_list.c:212
static void _wlmtool_toplevel_handle_done(void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1)
Definition toplevel_list.c:196
static void _wlmtool_toplevel_handle_app_id(void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1, const char *app_id)
Definition toplevel_list.c:225
static void _wlmtool_toplevel_handle_closed(void *data, struct ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel_handle_v1)
Definition toplevel_list.c:174

Implementation of the ext_foreign_toplevel_handle callbacks.

◆ _wlmtool_listener

const struct ext_foreign_toplevel_list_v1_listener _wlmtool_listener
static
Initial value:
= {
}
static void _wlmtool_handle_toplevel(void *data, struct ext_foreign_toplevel_list_v1 *ext_foreign_toplevel_list_v1, struct ext_foreign_toplevel_handle_v1 *toplevel)
Definition toplevel_list.c:145
static void _wlmtool_handle_finished(void *data, struct ext_foreign_toplevel_list_v1 *ext_foreign_toplevel_list_v1)
Definition toplevel_list.c:165

Implementation of the ext_foreign_toplevel_list callbacks.