or gambling, or that barred or locked doors have been provided which prevent the access of any officer to said rooms where said gaming is carried on, the district attorney shall file a complaint in a court against the owner of such building or room, as well as against the keeper or proprietor of such hotel, tavern, inn or other building to obtain a mandatory injunction to compel the removal of all