]> git.lizzy.rs Git - bspwm.git/blobdiff - desktop.h
Prevent potential memory leak
[bspwm.git] / desktop.h
index 6d61949fb588e60ce792d60e92ebd7ec4a95146e..7ebc38d10a906c18e07f56cbd1766cfc16f2880b 100644 (file)
--- a/desktop.h
+++ b/desktop.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2014, Bastien Dejean
+/* Copyright (c) 2012, Bastien Dejean
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those
- * of the authors and should not be interpreted as representing official policies,
- * either expressed or implied, of the FreeBSD Project.
  */
 
 #ifndef BSPWM_DESKTOP_H
@@ -36,6 +32,8 @@ desktop_t *closest_desktop(monitor_t *m, desktop_t *d, cycle_dir_t dir, desktop_
 void change_layout(monitor_t *m, desktop_t *d, layout_t l);
 void transfer_desktop(monitor_t *ms, monitor_t *md, desktop_t *d);
 desktop_t *make_desktop(const char *name);
+void rename_desktop(monitor_t *m, desktop_t *d, const char *name);
+void initialize_desktop(desktop_t *d);
 void insert_desktop(monitor_t *m, desktop_t *d);
 void add_desktop(monitor_t *m, desktop_t *d);
 void empty_desktop(desktop_t *d);