Prepare a selection getter interface
This prepares a new class for getting selection contents. No run-time behaviour changes yet. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a7474412da
commit
e17912ec0c
|
@ -89,6 +89,7 @@ set(AWE_SRCS
|
|||
${BUILD_DIR}/objects/key.c
|
||||
${BUILD_DIR}/objects/screen.c
|
||||
${BUILD_DIR}/objects/tag.c
|
||||
${BUILD_DIR}/objects/selection_getter.c
|
||||
${BUILD_DIR}/objects/window.c)
|
||||
|
||||
set(AWE_MAN_SRCS
|
||||
|
|
4
luaa.c
4
luaa.c
|
@ -48,6 +48,7 @@
|
|||
#include "objects/client.h"
|
||||
#include "objects/drawable.h"
|
||||
#include "objects/drawin.h"
|
||||
#include "objects/selection_getter.h"
|
||||
#include "objects/screen.h"
|
||||
#include "objects/tag.h"
|
||||
#include "property.h"
|
||||
|
@ -1032,6 +1033,9 @@ luaA_init(xdgHandle* xdg, string_array_t *searchpath)
|
|||
/* Export client */
|
||||
client_class_setup(L);
|
||||
|
||||
/* Export selection getter */
|
||||
selection_getter_class_setup(L);
|
||||
|
||||
/* Export keys */
|
||||
key_class_setup(L);
|
||||
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* selection_getter.c - selection content getter
|
||||
*
|
||||
* Copyright © 2019 Uli Schlachter <psychon@znc.in>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "objects/selection_getter.h"
|
||||
|
||||
void
|
||||
selection_getter_class_setup(lua_State *L)
|
||||
{
|
||||
}
|
||||
|
||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* selection_getter.h - selection content getter header
|
||||
*
|
||||
* Copyright © 2019 Uli Schlachter <psychon@znc.in>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef AWESOME_OBJECTS_SELECTION_GETTER_H
|
||||
#define AWESOME_OBJECTS_SELECTION_GETTER_H
|
||||
|
||||
#include <lua.h>
|
||||
|
||||
void selection_getter_class_setup(lua_State*);
|
||||
|
||||
#endif
|
||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
Loading…
Reference in New Issue