diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d3d3b4da..a3bb366bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/luaa.c b/luaa.c index bfe8eee39..7a1a44866 100644 --- a/luaa.c +++ b/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); diff --git a/objects/selection_getter.c b/objects/selection_getter.c new file mode 100644 index 000000000..2fc4edb30 --- /dev/null +++ b/objects/selection_getter.c @@ -0,0 +1,29 @@ +/* + * selection_getter.c - selection content getter + * + * Copyright © 2019 Uli Schlachter + * + * 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 diff --git a/objects/selection_getter.h b/objects/selection_getter.h new file mode 100644 index 000000000..7d25012cd --- /dev/null +++ b/objects/selection_getter.h @@ -0,0 +1,30 @@ +/* + * selection_getter.h - selection content getter header + * + * Copyright © 2019 Uli Schlachter + * + * 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 + +void selection_getter_class_setup(lua_State*); + +#endif +// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80