Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@156 69d76c3e-0761-0410-948c-9895a8bb34fc
  • Loading branch information
asjacob2 committed Mar 12, 2009
1 parent ffe809a commit 61b8d3a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ LOBJS=bang-com$(OBJEXT) \
bang-write-thread$(OBJEXT) \
bang-read-thread$(OBJEXT) \
bang-peer$(OBJEXT) \
bang-scan$(OBJEXT)
bang-scan$(OBJEXT) \
bang-module-registry$(OBJEXT)

LSRC=src/base/bang-com$(SRCEXT) \
src/base/bang-net$(SRCEXT) \
Expand All @@ -36,7 +37,8 @@ LSRC=src/base/bang-com$(SRCEXT) \
src/base/bang-read-thread$(SRCEXT) \
src/base/bang-write-thread$(SRCEXT) \
src/base/bang-peer$(SRCEXT) \
src/base/bang-scan$(SRCEXT)
src/base/bang-scan$(SRCEXT) \
src/base/bang-module-registry$(SRCEXT)

AOBJS=preferences$(OBJEXT) \
main$(OBJEXT) \
Expand Down
4 changes: 2 additions & 2 deletions src/app/file-menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include<gtk/gtk.h>
#include<stdlib.h>

void BMACHINE_open_module(GtkWidget *widget) {
void BMACHINE_open_module() {

GtkWidget *dialog = gtk_file_chooser_dialog_new ("Open a Multiplicity module",GTK_WINDOW(widget),GTK_FILE_CHOOSER_ACTION_OPEN,
GtkWidget *dialog = gtk_file_chooser_dialog_new ("Open a Multiplicity module",NULL,GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
NULL);
Expand Down
5 changes: 5 additions & 0 deletions src/base/bang-module-registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#ifndef __BANG_MODULE_REGISTRY_H
#define __BANG_MODULE_REGISTRY_H

typedef struct {
BANG_module *module;
char started;
} registry_slot;

/**
* \param path The file system path to the module.
* \param module_name The function puts the name of the module here.
Expand Down

0 comments on commit 61b8d3a

Please sign in to comment.