Beispiel #1
0
static	GdkPixbuf	*load_logo_image(int dw, int dh )
{
	char path[1024];
	veejay_memset(path,0,sizeof(path));
	get_gd(path,NULL, "veejay-logo.png");
	return gdk_pixbuf_new_from_file( path,NULL );
}
Beispiel #2
0
//Print Imap
int print_imap(int fd)
{
    char buf[BLKSIZE];
    char buf1[BLKSIZE];
    int i = 0, j = 0;
    GD* gp;
    
    //read GP block at byte offset 2048
    get_gd(fd, buf1);
    gp = (GD *)buf1;

    //read Bitmap into buffer (bitmap block # taken from group block)
    get_block(fd, gp->bg_inode_bitmap, buf);

    
    //Print bitmap
    printf("\n***Imap***\n");
    while(i < BLKSIZE)
    {
       for(j = 0; (j < 10) && (i < BLKSIZE); j++)
       {
            printBin(buf[i]);
            printf(" ");
            i++;
        }
        printf("\n");
    }
}
Beispiel #3
0
void get_inode_table(int fd)
{
    GD* gp;
    char buf[BLKSIZE];
    get_gd(fd, buf);
    gp = (GD*)buf;
    inodeBegin = gp->bg_inode_table;
}
void set_free_blocks(int dev, int change)
{
    SUPER* sp = get_super(dev);
    sp->s_free_blocks_count += change;
    put_super(dev, sp);

    GD* gp = get_gd(dev);
    gp->bg_free_blocks_count += change;
    put_gd(dev, gp);
}
Beispiel #5
0
int
main ()
{
  int *p;

  p = get_gd ();
  set_gd (3);
  if (*p != 3 || !test_gd (3))
    abort ();

  p = get_ld ();
  set_ld (4);
  if (*p != 4 || !test_ld (4))
    abort ();

  printf ("PASS\n");

  return 0;
}
Beispiel #6
0
static int
do_test (void)
{
  int *p;

  p = get_gd ();
  set_gd (3);
  if (*p != 3 || !test_gd (3))
    abort ();

  p = get_ld ();
  set_ld (4);
  if (*p != 4 || !test_ld (4))
    abort ();

  printf ("PASS\n");

  return 0;
}
Beispiel #7
0
static	void	add_buttons( sequence_view_t *p, sequence_view_t *seqv , GtkWidget *w)
{
	int i;
	for( i = 0; i < FIRST_ROW_END;i ++ )
	{
		char path[1024];
		veejay_memset(path,0,sizeof(path));
		get_gd(path,NULL, button_template_t[i].file );
		seqv->icons[i] = gtk_image_new_from_file( path );
		seqv->buttons[i] = gtk_button_new_with_label(" ");
		gtk_widget_set_size_request_( seqv->icons[i],24,20 );
		gtk_button_set_image( GTK_BUTTON(seqv->buttons[i]), seqv->icons[i] );
		gtk_widget_set_size_request_( seqv->buttons[i],24,20 );
		gtk_box_pack_start( GTK_BOX(w), seqv->buttons[i], TRUE,TRUE, 0 );
		g_signal_connect( G_OBJECT( seqv->buttons[i] ), "clicked", G_CALLBACK( button_template_t[i].f),
				(gpointer)p );		
		gtk_widget_show( seqv->buttons[i] );

	}
}