chiark / gitweb /
protogen: disorder_new_tracks().
[disorder] / lib / client-stubs.c
index 1661a0cff29ecd9fa56995968bc51b5ec41df869..f995043100160f253df28f4ab57da992531da54c 100644 (file)
@@ -1,6 +1,11 @@
+/*
+ * Automatically generated file, see scripts/protocol
+ *
+ * DO NOT EDIT.
+ */
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2010 Richard Kettlewell
+ * Copyright (C) 2010-11 Richard Kettlewell
  *
  * 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
@@ -119,6 +124,12 @@ int disorder_moveafter(disorder_client *c, const char *target, char **ids, int n
   return disorder_simple(c, 0, "moveafter", target, disorder_list, ids, nids, (char *)0);
 }
 
+int disorder_new_tracks(disorder_client *c, long max, char ***tracksp, int *ntracksp) {
+  char buf_max[16];
+  byte_snprintf(buf_max, sizeof buf_max, "%ld", max);
+  return disorder_simple_list(c, tracksp, ntracksp, "new", buf_max, (char *)0);
+}
+
 int disorder_nop(disorder_client *c) {
   return disorder_simple(c, 0, "nop", (char *)0);
 }