$(PLUGIN): $(plugin_obj)
$(CC) $(CFLAGS) $(CFLAGS_PLUGIN) -o $(PLUGIN) $(plugin_obj) \
$(LDFLAGS) $(LDFLAGS_PLUGIN)
-
+
%.plugin.o: %.c
$(CC) $(CFLAGS) $(CFLAGS_PLUGIN) $(CPPFLAGS) $(CPPFLAGS_PLUGIN) \
/*
- * browser-switchboard-config.c -- command-line configuration utility for
+ * browser-switchboard-config.c -- command-line configuration utility for
* Browser Switchboard
*
* Copyright (C) 2009-2010 Steven Luo
int opt, done = 0;
int set = 0;
char *selected_opt = NULL;
-
+
while (!done && (opt = getopt(argc, argv, "hsbcmo:")) != -1) {
switch (opt) {
case 'h':
-[Desktop Entry]
+[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Browser Switchboard
struct swb_config *cfg, char *name) {
struct swb_config_option *opt;
ptrdiff_t i;
-
+
for (opt = swb_config_options; opt->name; ++opt) {
if (strcmp(opt->name, name))
continue;
/* calloc() zeroes the memory, so string is automatically
null terminated */
- /* make key point to a null-terminated string holding the
+ /* make key point to a null-terminated string holding the
config key */
len = substrs[1].rm_eo - substrs[1].rm_so;
memmove(line->key, line->key+substrs[1].rm_so, len);
log_msg("Couldn't acquire name com.nokia.osso_browser\n");
exit(1);
}
- if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
+ if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
log_msg("Couldn't acquire name com.nokia.osso_browser\n");
exit(1);
}
log_msg("Couldn't acquire name com.nokia.osso_browser on system bus\n");
g_error_free(error);
}
- if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
+ if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
log_msg("Couldn't acquire name com.nokia.osso_browser on system bus\n");
}
}
if (kill_browserd)
system("kill `pidof browserd`");
- if (!ctx || !ctx->continuous_mode)
+ if (!ctx || !ctx->continuous_mode)
exit(0);
dbus_request_osso_browser_name(ctx);
/* Parent process or error in fork() */
if (urilen > 0)
free(quoted_uri);
- free(command);
+ free(command);
return;
}
/* Child process */
error->message);
return 1;
}
- if (reqname_result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
+ if (reqname_result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
log_msg("Another browser-switchboard already running\n");
return 1;
}