test-libudev.c revision ba6929f6690a72485ac3c6b7610ffbd5ab319be7
/*
* test-libudev
*
* Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org>
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "libudev.h"
{
}
{
return 0;
}
static int print_properties_cb(struct udev_device *udev_device, const char *key, const char *value, void *data)
{
return 0;
}
{
const char *str;
int count;
printf("\n");
}
{
struct udev_device *device;
printf("no device\n");
return -1;
}
return 0;
}
void *data)
{
return 0;
}
{
int count;
return count;
}
{
struct udev_monitor *udev_monitor;
int fd;
if (udev_monitor == NULL) {
printf("no socket\n");
return -1;
}
while (1) {
struct udev_device *device;
int fdcount;
printf("no device from socket\n");
continue;
}
}
printf("exiting loop\n");
break;
}
}
return 0;
}
{
const char *str;
}
printf("no context\n");
return 1;
}
return 0;
}