| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
menu_proc.c - description |
/* |
| 3 |
------------------- |
* menu_proc |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - handler functions of menu commands |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* 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 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#include "article_cache.h" |
#include "article_cache.h" |
| 10 |
#include "article_favor_display.h" |
#include "article_favor_display.h" |
| 36 |
return REDRAW; |
return REDRAW; |
| 37 |
} |
} |
| 38 |
|
|
| 39 |
typedef union exec_handler_t{ |
typedef union exec_handler_t |
| 40 |
|
{ |
| 41 |
void *p; |
void *p; |
| 42 |
int (*handler)(); |
int (*handler)(); |
| 43 |
} exec_handler; |
} exec_handler; |
| 338 |
return REDRAW; |
return REDRAW; |
| 339 |
} |
} |
| 340 |
|
|
| 341 |
int user_list(void *param) |
int list_user(void *param) |
| 342 |
|
{ |
| 343 |
|
if (user_list_display(0) < 0) |
| 344 |
|
{ |
| 345 |
|
log_error("user_list_display(all_user) error\n"); |
| 346 |
|
} |
| 347 |
|
|
| 348 |
|
return REDRAW; |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
int list_online_user(void *param) |
| 352 |
{ |
{ |
| 353 |
if (user_list_display() < 0) |
if (user_list_display(1) < 0) |
| 354 |
{ |
{ |
| 355 |
log_error("user_list_display() error\n"); |
log_error("user_list_display(online_user) error\n"); |
| 356 |
} |
} |
| 357 |
|
|
| 358 |
return REDRAW; |
return REDRAW; |