Animations are not being loaded

I was able to bind the animations with

auto_bind(dummy.node(), dummy_anims, ~0);

Can someone clarify me what is that flag passed as final argument to auto_bind. The default value would be zero from the auto_bind.h header, but there are posts with the ~0 as argument and it did the job.

At last I found out that to get individual animations to work as I select I need to do:

int animnum=2; //Select a valid animation index
dummy_animation = dummy_anims.get_anim(animnum);
mystring = dummy_anims.get_anim_name(animnum);
std::cout << "Got anim named >" << mystring << "<" <<std::endl;
if (dummy_animation->has_anim()){
  std::cout << "Animation Node is OK!!!" << std::endl;
}
else{
  std::cout << "Animation Node is BAD!!!" << std::endl;
}
dummy_anims.loop(mystring.c_str(),true);

I was even able to add a few more animations and got they working very well. Panda3d seens pretty easy and fun to work, although there are some things not clear to me.

Thank you.