source: roaraudio/roarclients/roarctl.c @ 1137:700c32ffc876

Last change on this file since 1137:700c32ffc876 was 1137:700c32ffc876, checked in by phi, 15 years ago

insert a new parameter for the ss streucture: delay in mu-sec

File size: 18.3 KB
Line 
1//roarctl.c:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008
5 *
6 *  This file is part of roarclients a part of RoarAudio,
7 *  a cross-platform sound system for both, home and professional use.
8 *  See README for details.
9 *
10 *  This file is free software; you can redistribute it and/or modify
11 *  it under the terms of the GNU General Public License version 3
12 *  as published by the Free Software Foundation.
13 *
14 *  RoarAudio is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU General Public License for more details.
18 *
19 *  You should have received a copy of the GNU General Public License
20 *  along with this software; see the file COPYING.  If not, write to
21 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 *
23 */
24
25#include <roaraudio.h>
26#include <pwd.h>
27#include <grp.h>
28
29int g_verbose = 0;
30
31int display_mixer (struct roar_connection * con, int stream);
32int show_meta_all (struct roar_connection * con, int id);
33
34void usage (void) {
35 printf("roarctl [OPTIONS]... COMMAND [OPTS] [COMMAND [OPTS] [COMMAND [OPTS] [...]]]\n");
36
37 printf("\nOptions:\n\n");
38
39 printf("  --server SERVER         - Set server hostname\n"
40        "  --help                  - Show this help\n"
41        "  --verbose   -v          - Show verbose output\n"
42       );
43
44 printf("\nCommands:\n\n");
45 printf(
46        "  help                    - Show this help\n"
47        "\n"
48        "  standby, off            - Go into standby mode\n"
49        "  resume, on              - Go into active mode\n"
50        "  standbymode             - Show current standby mode\n"
51        "  exit                    - Quits the roard (must be used as last command)\n"
52        "  terminate               - Like exit but let the server up to serve still connected clients,\n"
53        "                            new clients cann't connect and the server terminates after the last\n"
54        "                            client disconnected\n"
55        "\n"
56        "  volume ID CHAN V0 V1... - Sets volume for stream ID\n"
57        "                            CHAN is the number of channels or 'mono' or 'stereo'\n"
58        "                            if mono or stereo is chosen roarctl trys to set\n"
59        "                            sensfull values for all channels even if the output\n"
60        "                            is has more channels.\n"
61        "                            all other args are the volumes of the channels\n"
62        "                            you may use integer or percent values.\n"
63        "                            percent values can flooding points.\n"
64        "\n"
65        "  flag   ID FLAGS         - Sets flags FLAGS on stream ID. FLAGS may be a comma\n"
66        "                            seperated list of flags.\n"
67        "  unflag ID FLAGS         - Unsets flags on a stream. See flag.\n"
68        "\n"
69        "  kick TYPE ID            - Kicks object of TYPE with id ID\n"
70        "                            Types: client stream sample source\n"
71        "\n"
72        "  serveroinfo             - Gets Informations about server output\n"
73        "  listclients             - Gets Informations about clients\n"
74        "  liststreams             - Gets Informations about streams\n"
75        "  allinfo                 - Get all infos\n"
76       );
77}
78
79void server_oinfo (struct roar_connection * con) {
80 struct roar_stream s;
81
82 if ( roar_server_oinfo(con, &s) == -1 ) {
83  fprintf(stderr, "Error: can not get server output info\n");
84  return;
85 }
86
87 printf("Stream direction      : %s\n", roar_dir2str(s.dir));
88 printf("Server Output rate    : %i\n", s.info.rate);
89 printf("Server Output bits    : %i\n", s.info.bits);
90 printf("Server Output channels: %i\n", s.info.channels);
91 printf("Server Output codec   : %i (%s%s)\n", s.info.codec, roar_codec2str(s.info.codec),
92                                     s.info.codec == ROAR_CODEC_DEFAULT ? " native" : "");
93// printf("Server Output rate: %i", s.info.rate);
94  if ( g_verbose > 1 )
95   printf("Server Position       : %lu S (%.3fs)\n", (unsigned long int) s.pos, (float)s.pos/(s.info.rate*s.info.channels));
96}
97
98const char * proc_name (pid_t pid) {
99 static char ret[80] = "?";
100#ifdef __linux__
101 char file[80], buf[80], *r;
102 int  i;
103
104 snprintf(file, 79, "/proc/%i/exe", pid);
105 file[79] = 0;
106
107 ret[0] = '?';
108 ret[1] = 0;
109
110 if ( (i = readlink(file, buf, 79)) != -1 ) {
111  buf[i] = 0;
112  if ( (r = strrchr(buf, '/')) != NULL ) {
113   r++;
114   if ( *r != 0 )
115    strcpy(ret, r);
116  }
117 }
118#endif
119
120 return ret;
121}
122
123void list_clients (struct roar_connection * con) {
124 int i;
125 int num;
126 int h;
127 int id[ROAR_CLIENTS_MAX];
128 struct roar_client c;
129 struct group  * grp = NULL;
130 struct passwd * pwd = NULL;
131
132 if ( (num = roar_list_clients(con, id, ROAR_CLIENTS_MAX)) == -1 ) {
133  fprintf(stderr, "Error: can not get client list\n");
134  return;
135 }
136
137 for (i = 0; i < num; i++) {
138  printf("client %i:\n", id[i]);
139  if ( roar_get_client(con, &c, id[i]) == -1 ) {
140   fprintf(stderr, "Error: can not get client info\n");
141   continue;
142  }
143  printf("Player name           : %s\n", c.name);
144  printf("Player PID            : %i(%s)\n", c.pid, proc_name(c.pid));
145  if ( c.uid != -1 ) {
146   pwd = getpwuid(c.uid);
147   grp = getgrgid(c.gid);
148   printf("Player UID/GID        : %i(%s)/%i(%s)\n", c.uid, pwd ? pwd->pw_name : "?", c.gid, grp ? grp->gr_name : "?");
149  }
150  if ( c.execed != -1 )
151   printf("Execed stream         : %i\n", c.execed);
152
153  for (h = 0; h < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; h++)
154   if ( c.streams[h] != -1 )
155    printf("stream                : %i\n", c.streams[h]);
156 }
157
158}
159
160void list_streams (struct roar_connection * con) {
161 int i;
162 int num;
163 int id[ROAR_STREAMS_MAX];
164 struct roar_stream s;
165 struct roar_stream_info info;
166 char flags[80];
167
168
169 if ( (num = roar_list_streams(con, id, ROAR_STREAMS_MAX)) == -1 ) {
170  fprintf(stderr, "Error: can not get stream list\n");
171  return;
172 }
173
174 for (i = 0; i < num; i++) {
175  printf("stream %i:\n", id[i]);
176  if ( roar_get_stream(con, &s, id[i]) == -1 ) {
177   fprintf(stderr, "Error: can not get stream info\n");
178   continue;
179  }
180  printf("Stream direction      : %s\n", roar_dir2str(s.dir));
181  if ( s.pos_rel_id == -1 )
182   printf("Relativ position id   : none (stream not synchronized)\n");
183  else
184   printf("Relativ position id   : %i\n", s.pos_rel_id);
185  if ( g_verbose > 1 )
186   printf("Position              : %lu S (%.3fs)\n", (unsigned long int) s.pos, (float)s.pos/(s.info.rate*s.info.channels));
187  printf("Input rate            : %i\n", s.info.rate);
188  printf("Input bits            : %i\n", s.info.bits);
189  printf("Input channels        : %i\n", s.info.channels);
190  printf("Input codec           : %2i (%s%s)\n", s.info.codec, roar_codec2str(s.info.codec),
191                                       s.info.codec == ROAR_CODEC_DEFAULT ? " native" : "");
192  if ( roar_stream_get_info(con, &s, &info) != -1 ) {
193   printf("Input codec (streamed): %2i (%s%s)\n", info.codec, roar_codec2str(info.codec),
194                                      info.codec == ROAR_CODEC_DEFAULT ? " native" : "");
195   if ( g_verbose ) {
196    printf("Input block size      : %i Byte\n", info.block_size);
197    printf("Underruns pre/post    : %i/%i\n",   info.pre_underruns, info.post_underruns);
198    if ( g_verbose > 1 )
199     printf("Stream delay          : %ims\n",   (int)info.delay/1000);
200
201    *flags = 0;
202    if ( info.flags & ROAR_FLAG_PRIMARY )
203     strcat(flags, "primary ");
204    if ( info.flags & ROAR_FLAG_SYNC )
205     strcat(flags, "sync ");
206    if ( info.flags & ROAR_FLAG_OUTPUT )
207     strcat(flags, "output ");
208    if ( info.flags & ROAR_FLAG_SOURCE )
209     strcat(flags, "source ");
210    if ( info.flags & ROAR_FLAG_META )
211     strcat(flags, "meta ");
212
213    printf("Flags                 : %s\n", flags);
214   }
215  }
216  display_mixer(con, id[i]);
217  show_meta_all(con, id[i]);
218 }
219
220}
221
222int display_mixer (struct roar_connection * con, int stream) {
223 int channels;
224 struct roar_mixer_settings mixer;
225 int i;
226
227 if ( roar_get_vol(con, stream, &mixer, &channels) == -1 ) {
228  fprintf(stderr, "Error: can not get stream mixer info\n");
229  return -1;
230 }
231
232 for (i = 0; i < channels; i++)
233  printf("Mixer volume chan %2i  : %i (%.2f%%)\n", i, mixer.mixer[i], (float)mixer.mixer[i]/655.35);
234
235 return 0;
236}
237
238int set_mixer (struct roar_connection * con, int * cur, int max, char * arg[]) {
239 int chans = 0;
240 int id;
241 int i;
242 int len;
243 int old_chans;
244 int vol_l, vol_r;
245 char * k;
246 struct roar_mixer_settings mixer;
247 struct roar_mixer_settings old_mixer;
248
249 if (*cur + 2 > max)
250  return -1;
251
252 id = atoi(arg[++(*cur)]);
253
254 k = arg[++(*cur)];
255
256 if ( roar_get_vol(con, id, &old_mixer, &old_chans) == -1 ) {
257  fprintf(stderr, "Error: can not get stream mixer info\n");
258  return -1;
259 }
260
261
262 if ( strcmp(k, "mono") == 0 && old_chans != 1 ) {
263  chans = 1;
264
265  if ( *cur + 1 > max )
266   return -1;
267
268  k   = arg[++(*cur)];
269  len = strlen(k);
270
271  if ( k[len - 1] == '%' ) {
272   k[len - 1] = 0;
273   vol_l = (atof(k)*65535)/100;
274  } else {
275   vol_l = atoi(k);
276  }
277
278  for (i = 0; i < old_chans; i++)
279   mixer.mixer[i] = vol_l;
280
281  chans = old_chans;
282
283 } else if ( strcmp(k, "stereo") == 0 && old_chans != 2 ) {
284  chans = 2;
285//  printf("mode: stereo; chans=%i, old_chans=%i\n", chans, old_chans);
286  ROAR_ERR("mode stereo not supported");
287  return -1;
288 } else {
289  if ( strcmp(k, "mono") == 0 ) {
290   chans = 1;
291  } else if ( strcmp(k, "stereo") == 0 ) {
292   chans = 2;
293  } else {
294   chans = atoi(k);
295  }
296
297//  printf("mode: int; chans=%i, old_chans=%i\n", chans, old_chans);
298
299  if ( *cur + chans > max )
300   return -1;
301
302  for (i = 0; i < chans; i++) {
303   k   = arg[++(*cur)];
304   len = strlen(k);
305
306   if ( k[len - 1] == '%' ) {
307    k[len - 1] = 0;
308    mixer.mixer[i] = (atof(k)*(int)65535)/100;
309   } else {
310    mixer.mixer[i] = atoi(k);
311   }
312  }
313 }
314
315 mixer.scale = 65535;
316
317 return roar_set_vol(con, id, &mixer, chans);
318}
319
320int set_meta (struct roar_connection * con, int id, char * mode, char * type, char * val) {
321 struct roar_meta   meta;
322 struct roar_stream s;
323 int mode_i = ROAR_META_MODE_SET;
324
325 memset(&s, 0, sizeof(s));
326
327 s.id = id;
328
329// printf("set_meta(*): mode='%s', type='%s', val='%s'\n", mode, type, val);
330
331 if ( strcmp(mode, "add") == 0 ) {
332  mode_i = ROAR_META_MODE_ADD;
333 }
334
335 meta.type   = roar_meta_inttype(type);
336 meta.value  = val;
337 meta.key[0] = 0;
338
339 if ( meta.type == -1 ) {
340  fprintf(stderr, "Error: unknown type: %s\n", type);
341  return -1;
342 }
343
344// printf("D: type=%i, mode=%i\n", meta.type, mode_i);
345
346 if ( roar_stream_meta_set(con, &s, mode_i, &meta) == -1 )
347  return -1;
348
349 meta.type  = ROAR_META_TYPE_NONE;
350 meta.value = NULL;
351
352 return roar_stream_meta_set(con, &s, ROAR_META_MODE_FINALIZE, &meta);
353}
354
355int load_meta (struct roar_connection * con, int id, char * file) {
356 struct roar_meta   meta;
357 struct roar_stream s;
358 int mode_i = ROAR_META_MODE_SET;
359 FILE * in;
360 char lion[1024];
361 char * v;
362
363 memset(&s, 0, sizeof(s));
364
365 s.id = id;
366
367 if ( (in = fopen(file, "r")) == NULL )
368  return -1;
369
370 while (fgets(lion, 1024, in) != NULL) {
371  if ( (v = strtok(lion, "\r\n")) != NULL )
372   if ( (v = strtok(NULL, "\r\n")) != NULL )
373    *(v-1) = 0;
374
375  if ( (v = strstr(lion, "=")) == NULL ) {
376   fprintf(stderr, "Error: can not parse meta data lion: %s\n", lion);
377   continue;
378  }
379
380  *v++ = 0;
381
382  meta.type   = roar_meta_inttype(lion);
383  meta.value  = v;
384  meta.key[0] = 0;
385
386  if ( meta.type == -1 ) {
387   fprintf(stderr, "Error: unknown type: %s\n", lion);
388   continue;
389  }
390
391  if ( roar_stream_meta_set(con, &s, mode_i, &meta) == -1 )
392   return -1;
393 }
394
395 fclose(in);
396
397 meta.type  = ROAR_META_TYPE_NONE;
398 meta.value = NULL;
399
400 return roar_stream_meta_set(con, &s, ROAR_META_MODE_FINALIZE, &meta);
401}
402
403int show_meta_type (struct roar_connection * con, int id, char * type) {
404 struct roar_meta   meta;
405 struct roar_stream s;
406
407 memset(&s, 0, sizeof(s));
408
409 s.id = id;
410
411 meta.type  = roar_meta_inttype(type);
412
413 if ( meta.type == -1 ) {
414  fprintf(stderr, "Error: unknown type: %s\n", type);
415  return -1;
416 }
417
418 if ( roar_stream_meta_get(con, &s, &meta) == -1 )
419  return -1;
420
421 printf("Meta %-17s: %s\n", roar_meta_strtype(meta.type), meta.value);
422
423 roar_meta_free(&meta);
424
425 return 0;
426}
427
428int show_meta_all (struct roar_connection * con, int id) {
429 struct roar_stream s;
430 int types[ROAR_META_MAX_PER_STREAM];
431 int i;
432 int len;
433
434 memset(&s, 0, sizeof(s));
435
436 s.id = id;
437
438 if ( (len = roar_stream_meta_list(con, &s, types, ROAR_META_MAX_PER_STREAM)) == -1 )
439  return -1;
440
441 for (i = 0; i < len; i++)
442  show_meta_type(con, id, roar_meta_strtype(types[i]));
443
444 return 0;
445}
446
447int save_meta (struct roar_connection * con, int id, char * file) {
448 struct roar_stream s;
449 struct roar_meta   meta;
450 int types[ROAR_META_MAX_PER_STREAM];
451 int i;
452 int len;
453 FILE * out;
454
455 memset(&s, 0, sizeof(s));
456
457 s.id = id;
458
459 if ( (out = fopen(file, "w")) == NULL )
460  return -1;
461
462 if ( (len = roar_stream_meta_list(con, &s, types, ROAR_META_MAX_PER_STREAM)) == -1 )
463  return -1;
464
465 for (i = 0; i < len; i++) {
466/*
467  show_meta_type(con, id, roar_meta_strtype(types[i]));
468*/
469  meta.type  = types[i];
470
471  if ( roar_stream_meta_get(con, &s, &meta) == -1 )
472   continue;
473
474//  printf("Meta %-17s: %s\n", roar_meta_strtype(meta.type), meta.value);
475
476  fprintf(out, "%s=%s\n", roar_meta_strtype(meta.type), meta.value);
477
478  roar_meta_free(&meta);
479 }
480
481 fclose(out);
482
483 return 0;
484}
485
486int set_flags (struct roar_connection * con, int id, int reset, char * flags) {
487 int f = ROAR_FLAG_NONE;
488 char * c;
489 struct roar_stream s[1];
490
491 memset(s, 0, sizeof(struct roar_stream));
492
493 s->id = id;
494
495 c = strtok(flags, ",");
496 while (c != NULL) {
497  if ( !strcmp(c, "meta") ) {
498   f |= ROAR_FLAG_META;
499  } else if ( !strcmp(c, "primary") ) {
500   f |= ROAR_FLAG_PRIMARY;
501  } else if ( !strcmp(c, "sync") ) {
502   f |= ROAR_FLAG_SYNC;
503  } else {
504   fprintf(stderr, "Error: unknown flag: %s\n", c);
505   return -1;
506  }
507
508  c = strtok(NULL, ",");
509 }
510
511 return roar_stream_set_flags(con, s, f, reset);
512}
513
514int main (int argc, char * argv[]) {
515 struct roar_connection con;
516 char * server   = NULL;
517 char * k = NULL;
518 int    i;
519 int    t = 0;
520
521 for (i = 1; i < argc; i++) {
522  k = argv[i];
523
524  if ( strcmp(k, "--server") == 0 ) {
525   server = argv[++i];
526  } else if ( strcmp(k, "-v") == 0 || strcmp(k, "--verbose") == 0 ) {
527   g_verbose++;
528  } else if ( strcmp(k, "--help") == 0 ) {
529   usage();
530   return 0;
531  } else if ( *k == '-' ) {
532   fprintf(stderr, "Error: unknown argument: %s\n", k);
533   usage();
534   return 1;
535  } else {
536   break;
537  }
538 }
539
540 // connect
541
542 if ( roar_connect(&con, server) == -1 ) {
543  fprintf(stderr, "Error: Can not connect to server\n");
544  return 1;
545 }
546
547 if ( roar_identify(&con, "roarctl") == -1 ) {
548  fprintf(stderr, "Error: Can not identify to server\n");
549  return 1;
550 }
551
552 if ( i == argc ) {
553  fprintf(stderr, "Error: No Commands given\n");
554  return 0; // this is not a fatal error...
555 }
556
557 for (; i < argc; i++) {
558  k = argv[i];
559  // cmd is in k
560
561  printf("--- [ %s ] ---\n", k);
562
563  if ( !strcmp(k, "help") ) {
564   usage();
565
566
567  } else if ( !strcmp(k, "standby") || !strcmp(k, "off") ) {
568   if ( roar_set_standby(&con, ROAR_STANDBY_ACTIVE) == -1 ) {
569    fprintf(stderr, "Error: can not set mode to standby\n");
570   } else {
571    printf("going into standby\n");
572   }
573  } else if ( !strcmp(k, "resume") || !strcmp(k, "on") ) {
574   if ( roar_set_standby(&con, ROAR_STANDBY_INACTIVE) == -1 ) {
575    fprintf(stderr, "Error: can not set mode to active\n");
576   } else {
577    printf("going into active mode\n");
578   }
579
580  } else if ( !strcmp(k, "exit") ) {
581   if ( roar_exit(&con) == -1 ) {
582    fprintf(stderr, "Error: can not quit server\n");
583   } else {
584    printf("Server quited\n");
585    break;
586   }
587  } else if ( !strcmp(k, "terminate") ) {
588   if ( roar_terminate(&con, 1) == -1 ) {
589    fprintf(stderr, "Error: can not terminate server\n");
590   } else {
591    printf("Server got asked to quited\n");
592    break;
593   }
594
595  } else if ( !strcmp(k, "standbymode") ) {
596   t = roar_get_standby(&con);
597   if ( t == -1 ) {
598    fprintf(stderr, "Error: can not get stanby mode\n");
599   } else if ( t == ROAR_STANDBY_ACTIVE ) {
600    printf("Server is in standby\n");
601   } else if ( t == ROAR_STANDBY_INACTIVE ) {
602    printf("Server is active\n");
603   } else {
604    fprintf(stderr, "Error: unknown standby mode: %i\n", t);
605   }
606
607  } else if ( !strcmp(k, "serveroinfo") ) {
608   server_oinfo(&con);
609  } else if ( !strcmp(k, "listclients") ) {
610   list_clients(&con);
611  } else if ( !strcmp(k, "liststreams") ) {
612   list_streams(&con);
613  } else if ( !strcmp(k, "allinfo") ) {
614   server_oinfo(&con);
615   printf("\n");
616   list_clients(&con);
617   printf("\n");
618   list_streams(&con);
619
620  } else if ( !strcmp(k, "kick") ) {
621   k = argv[++i];
622   if ( !strcmp(k, "client") ) {
623    t = ROAR_OT_CLIENT;
624   } else if ( !strcmp(k, "stream") ) {
625    t = ROAR_OT_STREAM;
626   } else if ( !strcmp(k, "sample") ) {
627    t = ROAR_OT_SAMPLE;
628   } else if ( !strcmp(k, "source") ) {
629    t = ROAR_OT_SOURCE;
630   } else {
631    fprintf(stderr, "Error: unknown type: %s\n", k);
632    continue;
633   }
634   //t = atoi(argv[i++]);
635   if ( roar_kick(&con, t, atoi(argv[++i])) == -1 ) {
636    fprintf(stderr, "Error: can not kick %s\n", k);
637   } else {
638    printf("%s kicked\n", k);
639   }
640
641  } else if ( !strcmp(k, "volume") ) {
642   if ( set_mixer(&con, &i, argc, argv) == -1 ) {
643    fprintf(stderr, "Error: can not set volume\n");
644   } else {
645    printf("volume changed\n");
646   }
647
648  } else if ( !strcmp(k, "flag") ) {
649   i++;
650   if ( set_flags(&con, atoi(argv[i]), ROAR_SET_FLAG, argv[i+1]) == -1 ) {
651    fprintf(stderr, "Error: can not set flags\n");
652   } else {
653    printf("flags changed\n");
654   }
655   i++;
656  } else if ( !strcmp(k, "unflag") ) {
657   i++;
658   if ( set_flags(&con, atoi(argv[i]), ROAR_RESET_FLAG, argv[i+1]) == -1 ) {
659    fprintf(stderr, "Error: can not reset flags\n");
660   } else {
661    printf("flags changed\n");
662   }
663   i++;
664  } else if ( !strcmp(k, "metaset") ) {
665   i++;
666   if ( set_meta(&con, atoi(argv[i]), argv[i+1], argv[i+2], argv[i+3]) == -1 ) {
667    fprintf(stderr, "Error: can not set meta data\n");
668   } else {
669    printf("meta data changed\n");
670   }
671   i += 3;
672  } else if ( !strcmp(k, "metaget") ) {
673   i++;
674   if ( show_meta_type(&con, atoi(argv[i]), argv[i+1]) == -1 ) {
675    fprintf(stderr, "Error: can not get meta data\n");
676   }
677   i++;
678  } else if ( !strcmp(k, "metasave") ) {
679   i++;
680   if ( save_meta(&con, atoi(argv[i]), argv[i+1]) == -1 ) {
681    fprintf(stderr, "Error: can not get meta data\n");
682   } else {
683    printf("meta data saved\n");
684   }
685   i++;
686  } else if ( !strcmp(k, "metaload") ) {
687   i++;
688   if ( load_meta(&con, atoi(argv[i]), argv[i+1]) == -1 ) {
689    fprintf(stderr, "Error: can not set meta data\n");
690   } else {
691    printf("meta data saved\n");
692   }
693   i++;
694
695  } else {
696   fprintf(stderr, "Error: invalid command: %s\n", k);
697  }
698
699 }
700
701 roar_disconnect(&con);
702
703 return 0;
704}
705
706//ll
Note: See TracBrowser for help on using the repository browser.